Keyvaluestore enhance(backport to firely)

KeyValueStore enhancement:

1. Add more KeyValueStore options
2. Fix some KeyValueStore bugs
3. Add more tests to test ObjectStore
4. Make lock clear
5. Remove unused or filestore-copied codes
6. Add perf counter to KeyValueStore