Refactored synchronization a bit.
Logging and Sentry. Closes #56.