exam security + bug fix in item security

- grants access to exam if:
    - student enrolled in course that has exam
    - student hasnt atken exam
    - exam is released
    - release date is in the past
    - exam is not overdue

bug fix to item security: all items shoudl be accessible to prof from
search page