Commit for APIController and unit tests

Checking in code for the APIController which allows to communicate with
the web API. Also, checking in corresponding unit tests.