Reorganize TableGateway, Hypermedia, Paginator packages and the event handlers related to the controller.