Added API for Tasks and API Codeception tests

Added API for Tasks and API Codeception tests for Clients/Tasks.
Codeception is now set up for testing PHP code.