Refactored ProjectsController to move logic to model

Logic dealing with activation is now in the model