re-write api-con-user for phpunit tests

the class API_Connection_Manager_User needs to be re-written for phpunit tests