Fixed out-of-order message deadlock

- made sync process complete in full before listener transmits
  new messages added to its recv channel
moved identical_to
Merge pull request #45 from LeepsLab/router-deadlock

Fixed deadlock caused by out of order messages
Merge pull request #46 from RedwoodAdmin/master

Fixed out-of-order message deadlock