Common abstract class and an interface

Added an abstract class for Handlers, BasicHandler, with an interface
Registrable which must be used.
pom.xml cleanup