[HG] renaming msg.type to msg.resourceUri
[HG] moving message inside client_server.js
[HG] implementing verb handlers.