prevent the agenda being seen unless it should be

this also restricts access to the registration and accommodation page unless registration is open
Merge pull request #252 from adrianbanks/issues/251

Fix #251 Prevent the agenda being seen unless it should be