build app urls based on wildcard ssl or app ssl
Merge pull request #844 from progrium/mh-fix-ssl-urls

build app urls based on wildcard ssl or app ssl