Move MockSerialDevice class to production code and remove dependencies
to it by adding a factory-like method to serialdevice package, and
invoking it from within the constructor of Synchronizer.
This makes it consistent and transparent across all tools that use
synchronization.