created a simple api, coua, to handle oess auth and method calls.