added json file based last state service
Merge branch 'newquery' of github.com:araqne/logdb into newquery