added ApiController, closes #7
Merge pull request #9 from jho406/api_fixes

added ApiController, closes #7