use halt for web error catching
toggle show_exceptions via config
Merge pull request #723 from flapjack/719_v1_web_exceptions

web: use halt instead of returning error codes, config for show_exceptions
forward port from 719_v1_web_exceptions
Merge branch 'maint/1.x'
Merge branch '719_v2_web_exceptions'