cleanup + basic insertion support

Static library classes have been cleaned up. Caching has been fixed in
mjolnir/database. Basic insertion is now working. Primitive insertion is
intended as a special case safety measure; the operation is allowed, but
the lft and rgt will be null--this allows for detection of misbehaving
function with out breaking operations.