sails.getBaseurl() returns a localhost URL when deployed (on Heroku) #2300

Add ability to use http in 'sails.config.proxyHost' config property and automatically add https when port is 443