Syncstore auth prereq

Move the userid-auth-checking logic into a prereq function, for easy sharing between views.

This is a prereq that doesn't return a value, which seems to be slightly against the grain of what prereqs are for, but is still seemed like a good fit to me.