fixed responding watch request after sync
added using pushInProgress flag in ClientRepo
added actions, undo and redo infrastructure;
fixed incorrect removing of '\n' in the beginning of POST data