Less code == less bugs 

![mop](https://f.cloud.github.com/assets/1065/1147244/1c729770-1e9d-11e3-8d51-493d0d80fa82.jpg)

```javascript
self.cms_request = function(method, path) {
    var url = im.config.cms_api_root + path;
    var p = im.api_request("http." + method.toLowerCase(), {
        url: url,
        headers: self.headers
    });
    p.add_callback(function(result) {
        var json = self.check_reply(
            result, url, method.toUpperCase(), null, false);
        return json;
    });
    return p;
};

self.cms_get = function(path) {
    return self.cms_request('GET', path);
};

self.cms_post = function(path, data) {
    return self.cms_request('POST', path);
};

self.cms_put = function(path, data) {
    return self.cms_request('PUT', path);
};
```