Unit tests working, ready for review and pull request

closed#2 

Adds the facility to call the API in a *more* fluent way. Syntax could still be improved but it's nicer.

See the Issue #2 to see how this PR works in practice.