New module for better tracking habits.
Initial version of hooks which works most of the time.