Moved api controller to controllers directory

Moved the api.py file that handles serving the version number to the API
directory.