Only start php API server once
refactoring: Controllers as service
Merge pull request #3 from mathroc/master

Refactoring