API has plugable authentication methods, reflect this.
Merge pull request #580 from mapkyca/api-tweaks

API has plugable authentication methods, reflect this.