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

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