Pass all method parameters in constructor

Implementation of the interface:
```javascript
var myMethod = new ApiMethod({
    name: 'myMethod',
    params: {
        name: {type: 'String', required: true}
    },
    options: {
        hiddenOnDocPage: true
    },
    action: function (params) {
        // ...
    }
});
```
... with data ... or with params