Model refactor

Added tests as the logic in the controllers was pushed down into the models for Students and Cohorts.