added diag msg in LastStateServiceImpl.java
now WriteFallback can be registered in LogStorage
modified return type of LogDbClient.insert to Future<Integer>
modified flushing logic used by LogDbClient.insert
fixed NPE