added riot api service and tests

Added riot api service, set up test environment, added tests for services and controllers.