Bug 1030976 - Add ability to prioritize task

This covers both adding the ability to specify a priority for Tasks, and also making the default sort order for tasks be `priority`, `difficulty`.