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

This also restricts access to the registration and accommodation page unless registration is open.