Added auto-host detection

Basically, detects if on heroku and if so switches the host over to the heroku host