Increment task counter correctly.

Use the Redis incr command to keep the state of the task ids.

Don't update when running dev server, it takes forever to start up.