Started refactoring tests by writing some jasmine integration tests.
Fixed bug in hanling of route defaults and querystring params.