Repair TOC view_def
refactor permissions and roles out of models/auth. auth is easier to import; functions are now in util.
Merge branch 'develop' of https://github.com/ImaginationForPeople/assembl into develop