use new middleware signature
add travis.yml
Merge pull request #4 from coderhaoxin/master

use new middleware signature