See Adding links to Discourse header - #2 by cpradio, and specifically
https://github.com/sitepoint/discourse-theme/blob/master/assets/javascripts/discourse/templates/header.hbs