Fix OSQA-819: Link to profile in message is wrong if OSQA is installed in a subfolder

Fixes http://jira.osqa.net/browse/OSQA-819
Further fixes for subfolder hosting
Further fixes for subfolder hosting
Merge pull request #46 from udacity/subfolder_fixes

Fix OSQA-819: Link to profile in message is wrong if OSQA is installed in a subfolder