extract canonical to rack app and refactor tests and code for url rack-app
Merge branch 'fix/canonical' of github.com:learnjin/rewritten into fix/canonical

Conflicts:
	lib/rack/url.rb
	lib/rewritten.rb
	test/rack/rewritten_url_test.rb