Use relative urls for ajax and file upload

To work in cases when the Hostname was rewritten (http://www.browsersync.io/)
Merge pull request #1381 from njam/issue-1381

Relative url for ajax and upload