CFY-1772 added username-api-key authentication and tests.