Moved existing API controller and classes to 'api' package