updated plugin and stream-lined code

Events that can be triggered are now prefixed with 'req.' also a handly
response handler method is introduced.