HTTP method is now passed into authenticate() and check_auth()

Fix issue #90. The HTTP method such as 'GET' or 'PATCH' is now passed into the
authenticate() method and the check_auth() methods to allow for security
checks based on the type of operation being performed.