Some initial work on task queues.
Added missing parentheses that were causing problems.
Split the statistics into their own Django app.