refactor API working to be simpler and use more built in stuff from Doctrine; update unit tests; remove superfluous getIsApi() stuff; don't create annotation unless actually annotated