Blocking API

Block on API requests and improve error handling
* 404 when trying to stop/scale a non-existing app
* 422 when trying to start an already existing app
* 504 on timeouts