Use lua for batch expiration

@benkirzhner -- I played around with this today and made some good progress.  This builds on seomoz/qless#125 and just moves the expiration into lua.  `mark_as_complete` still needs to be moved, but it can internally delegate to this expiration logic.