A background processing implementation inspired by php-resque