add HOST env
use HOST env for mailer host
use correct url for mailer
move search url to JS var
don't need to precompile
test