Refactoring, SLAP, Task bug

Made some comments and applied SLAP, changed id_counter to not read
everytime.
Fixed potential bug in Task - may end up incrementing twice on a
recurring task with a single date
UI/Controller task handling
TaskComparator, PriorityQueues

Tasks can now be sorted. Floating tasks are lowest (first in list).
Modified tests to support.