Updated for API 1.3

Please see the commit messages for more information. Due to some API inconsistencies during the development period the new HMAC verification system is relatively untested in a production-scale environment.