Added internal handler interface

The classes in the internal package now implements
Connection.InternalHander