Code cleanup

* Add composer to project
* Move all apis to dedicated template and context files
* Update gitignore