added support for custom error pages

Closes #32 
@pkurek not a problem ;)