included permissions checking for surveys

For some reasons no permissions checking are done for survey templates
This means that any instructors can edit other instructors' public
survey templates if they know the url. The permission checking
(similar to the evaluation templates) have now been done.