Synchronize at outbox time.

Instead of determining synchronization upon learned, determine it at the
time of the outbox generation.

Closes #192.
Closes #191.
Closes #190.
Closes #189.