Add basic handler interface

This is the basic structure of what I was thinking. What do you think?