Move host and protocol out in to environment variables
This will ease deploying to platforms (like bluemix)