item edit security

- item edit access granted if :
   - item exists
   - user is prof for course that hsa exam that has item
   - item is not part of exam that is released

- added check for exam security that exam exists