Add task state constants
Encapsulated most task state functionality into a DharanaTask class