* Add support for client basic auth for exchanging access tokens * Improve error messages * Fix tests