Implemented generice handler mechanism.

From now on the apply() function is used to register a handler.
Restructured source.
Implemented pipe() and finalize().

Those are convenience methods to make the api more chainable.
0.1.0