Add support to express 4.x and fix a bug

1. Add support to express 4.x
2. Fix a bug which can cause bitbucket post hook to be triggered multiple times.
I moved the response to above of this section, I have made a comment below.