URL class for easier handling of urls, paths etc..
Using Path in main instead of urlparse
minor main cleanup
to_json dedup and minor cleanup
Merge pull request #102 from rabix/refactor/path

Refactor/path