added ApiController, closes #7

approved