Updated README.md
Updated tests to use authenticate and new error codes
Added db encoding opts, cleaned up authenticate() and unauthenticate()