Code cleanup on Accounts endpoint - review API and code, phpcs cleanup.