Fix URL parsing

- Do no longer convert NSURL to absolute string to then parse it by hand
- Fix potential crash with query string parsing
- Convert + to spaces in querysting before decoding
- Refactor unit tests so asserts errors are correctly located
Merge pull request #6 from rs/fix-url-parsing

Fix URL parsing