Timez plugin (and factoid permissions)

Timez plugin and a bit of bug fixing for factoid permission checks. The permission checks needed to be moved lower in the code because they were happening regardless of whether factoid was being triggered.