More fixes for supporting Relative URL

See this issue: https://github.com/gitlabhq/gitlabhq/issues/4655

* Fixes HTTP clone
* Fixes assets