Dynamically set url application so faye server is working well with production but also staging urls
Force https for external resources