Added contents to connection class

Added Connection.InternalHandler interface
Added internal package
Added internal handlers
Added Test class