refactor, support use embedded ledisdb

now you can embed ledisdb as a lib to use.