Added ability to pass functions directly

Use case,
```javascript
validate({
  validator: function(val) {
    return val > 0;
  },
  message: 'User count must be a positive number.'
})
```