add a method to return an object in Cursor.php

It would be great to be able to return an object in many cases instead of straight JSON.
Merge pull request #41 from CammoKing/patch-1

add a method to return an object in Cursor.php