Do stat calculations in a Resque job

This branch brings in Resque and does stat calculations in a Resque job. It polls the status with AJAX and updates the page once it's done.