Hostname added to template

DISCLAIMER
-----------------
This is somewhat opinionated, so, I think, it needs further discussion.

What is this about
-----------------
On `Ubuntu` machines it is useful to have current hostname as an alias for localhost. 

This is a quick fix, suitable for me - I recognise, that there may be other situations where hostname may be assigned to other address.

How should we approach that? Maybe, add some customizeable list of hostnames, assigned to localhost?