add app.locals()
add customer error handler
add QiriError to handler errors
remove unused code
bug fix about QiriError update