update beforeReply and afterReply; for middleware usage; ref #6
Merge pull request #7 from node-webot/middleware

update beforeReply and afterReply; for middleware usage; ref #6