Refactoring project operations

Move CRUD resource operations out of the controllers, so that we can use them elsewhere

Edited by Pierre Chanial