changes20130814

add scan support
improve data format, lower usage for varchar field
less memory copy when writing
bug fix: file lock of leveldb now is released correctly
improve cmake and other scripts, for compatibility higher leveldb version and debug mode