Fixed cursor handling and added new sample apps

- Cursors now work: addRequiredOperation passes 'cursor' and 'limit' to addUrlTerm rather than addRequirement
- addUrlTerm properly handles a 'ql' being passed in (just in case someone tries it)