Refactoring. Removed the authentication service and added a general authentication controller. Standardized the authenticatedAction in courses.scala.