More work on ORM based legbot

Added functionality to have time and mod checks on dynamic commands.
This is a not-working codebase ATM, though. :(