add leveldb bindings

These were originally written by @lht, but I'm maintaining them as he doesn't have the spare time at the moment, and he thought it would be better if my repository was used as the upstream rather than sending in pull requests.