keep query in url
update parser, keep query in url
add middleware for connect
use mocha for test