Refactored restful routes into it's own module
Changed coapServer pattern to follow the restify pattern we're using