refactored routes and added REST service for projects