implement scheduler

I've implemented a scheduler using https://github.com/chrisboulton/php-resque-scheduler. Note that there is an outstanding pull request which should be fixed soon so the workaround is a bit clunky at the moment.