Refactored the task history support added by jennever@foursquare.com

Refactoring mainly to remove all try/except guards

DbTaskHistory is untested and the rest of the code is pretty untested too. Pushing it early to get feedback. @JoeEnnever and @jcrobak let me know what you think