Adding createOrUpdate method and tests
Merge pull request #6 from oliverjohnstone/master

Adding create or update functionality.