added changes new changes processing functions

+ added flatten_and_store function that takes changes as stream, flatten and stored them into ajxp_last_buffer db
+ new function to detect echo from both local and remote side