Full support for relative paths (assets + docs)



1. Using relative paths for assets and all URLs in markup.
2. Application no more needs to be placed under root to work. Can be used from any sub-directory.
3. Better mechanism to check for homepage and read URL fragments. (Works across all server setups)