Add support for timeout in function kwargs

I've added support for passing the timeout in kwargs, which means the client
code can decide the timeout. This is useful for functions that take a timeout
argument.

I've also made the tests proper and added nosetests as a requirement.
Merge pull request #3 from jonblack/feature-timeout-kwarg

Add support for timeout in function kwargs