Rewrote projects API, fixed error overshadow issue.
Rewrote projects API, fixed error overshadow issue.

The issue was that try/catch block caught responses that should have
been propagated to the user (400, 403, 404 and som others), an error 500
was returned instead. Changed the code and scoped try/catch block as
needed.

learning-layers/Timeliner