Successfully writing to lightningdb. Now to pull it back out. Also need to write to the blockstore.
A lot of code cleanup, plus beginning the implementation of a datastore.