fixed bug inroduced in c567b10

swift:// url relative path feature was not tested enough
added proper tests and fixed bugs
Merge pull request #37 from pkit/proxy_fixes2

fixed bug inroduced in c567b10