Add new 'beforeResponseHandler' event (closes #42)