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

Adding create or update functionality.