Cursor examples
Add generic error handler.
Implemented query function.
Cursor tests.
Implemented rudimentary Cursor class for querying.
Implemented all and byExample methods.