Add ability to register global error handler inside blueprint

Add ability to register global error handler inside blueprint using app_errorhandler