Errors and Filters.

Can now add and run user defined error callbacks.

Can now add and run user defined filter callbacks, but just a single one for each type right now.
Merge pull request #2 from oscarpalmer/dev

Errors and filters