U1db implementation

Note that asserts may not be executed depending on how python is called, so we should not depend on assertions like these if it is a crucial test. We have [leap_assert](http://git.io/9-9HCQ) for that, if you want to use it.