[hooks.js] added expectParams in routes
[hooks.js] added expectParams in routes

This gives more error checking and better documentation.

Change-Id: I58dc5775e632ec4d59a65c443a5faa12457a186e
Reviewed-on: http://review.northscale.com:8080/315
Reviewed-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>
Tested-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>

pavel-blagodov/ns_server,mschoch/ns_server,membase/ns_server,ceejatec/ns_server,ingenthr/ns_server,ingenthr/ns_server,ceejatec/ns_server,nimishzynga/ns_server,vzasade/ns_server,vzasade/ns_server,t3rm1n4l/ns_server,nimishzynga/ns_server,membase/ns_server,daverigby/ns_server,ceejatec/ns_server,membase/ns_server,membase/ns_server,t3rm1n4l/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,t3rm1n4l/ns_server,ceejatec/ns_server,membase/ns_server,daverigby/ns_server,daverigby/ns_server,ceejatec/ns_server,daverigby/ns_server,mschoch/ns_server,ceejatec/ns_server,pavel-blagodov/ns_server,pavel-blagodov/ns_server,t3rm1n4l/ns_server,ingenthr/ns_server,daverigby/ns_server,ingenthr/ns_server,nimishzynga/ns_server,nimishzynga/ns_server,mschoch/ns_server,membase/ns_server,nimishzynga/ns_server,vzasade/ns_server,mschoch/ns_server,nimishzynga/ns_server,vzasade/ns_server,mschoch/ns_server,pavel-blagodov/ns_server