Create new AbstractConnection which take the common part from the master
and slave classes.

Updated ActionHandler, ActionMaster, ActionSlave, ClockThread