Fixed failover recovery issues detected by _tasks_history. Moved _tasks_history to seperate state
Updated readme to reflect _tasks_history
Increased code coverage. Removed dead code