deps: Add leveldb submodule
core: Replace unqlite with leveldb

It will take some work to get leveldb to work on Windows, but at least
it is a reliable storage layer compared to unqlite.
Add timing information to brush editing operations