Fixes #358

Proposal to address #358, which is invalid state issue (IDLE <=> RUNNING).

Fix invalid sate issue of push replicator between IDLE and RUNNING under continuous mode.

Applied the changes which were suggested by @tleyden . #362

Applied the changes which were suggested by @tleyden . #362

explicitly ignore RESUME except in IDLE state

Add braces

Applied the changes which were suggested by @tleyden . and Fixed testGoOfflinePusher() issue which caused by trigger WAITTING_FOR_CHANGES at state of OFFLINE.