batch_size and limit implementation

Added batch_size and limit params to every function that creates a
cursor.  Actually implemented limit functionality in the cursor as well
(with correct threading for numberToReturn in rpc calls