Added simpletest for testing.
Added routing functionality for some simple routing.
Fixed bug in id route.
Added json function.
Fixed bug where action parameter did not have default value