Changed to using url.resolve instad of path.join
Added tests
Removed temporary code
Merge pull request #5 from praekelt/feature/issue-5-fix-url-joining

Fix URL joining