expectFunction

added expectFunction, useful in cases where making checks on event handlers.

```js
Contract.expectFunction(settings.success, 'Success handler should be specified');
Contract.expectFunction(settings.error, 'Error handler should be specified');
```

unless I missed something and there is a different way to do this :)