Added the part of the protocol that was in webcommand-express here as url parsing, url generating utility functions