Lots of good tests and test infrastructure added

* Separated out HTTP/WSGI test stuffs from the resource
  tests
* Adds Authenticated and Anonymous context/request mocks