[hooks.js] updated to latest REST API ammendments
[hooks.js] updated to latest REST API ammendments

Change-Id: I836f3c7cc917174b213d2253bce868f84b5f5e85
Reviewed-on: http://review.northscale.com/1291
Tested-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>
Reviewed-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>

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