Refactoring

Start php API server only once
Transform Controller into services
test controllers