Checkpoint for SQLite based event saving.
Clean up some more of the SQLite bits.
Add prepared statements for pending and delete.
Add other statements necessary for working with the events table.
Add reset pending statement which I found I needed when writing up the
explanation of this patch.
Add error checking on statement reset.
Move all those sqlite bits into private instance variables. Derp.
Oops, more public things I didn't mean to leave.
Move this new ish to a new class.
Fix destructor to actually close all the statement handles. (And remove
it from old place in KeenClient)
Rename addEvent and remove other junk from public interface. Only need
addEvent there atm.
Add getEvents and purgeEvents methods which complete the normal use
case.
Clean up diff.
Some API cleanup and removal of bits I didn't end up using.
Remove these booleans that aren't doing anything.
Add EventStore tests that don't do anything for now.
Commit a passing test and some non-permanent uses of NSLog so I can see
what's going on.
Tests and shit.
More tests, revert usage of NSLog
Clean up some todos.