Updated Template model to better protect the Application Templates endpoint; Removed unused endpoints and permissions logic from the User model and module views;