Adds basic authentication plumbing and tests

* Decorator for requiring authentication for specific
  resource methods
* Plumbing for authentication method that gets passed
  a context and a request and determines whether a request
  is authenticated, and if not, whether the request contains
  appropriate headers that may be validated for authentication
  and authorization purposes.