Added support for ShellIterator.hasNext and for the rest of the db.collection methods

Satisfies both github issues.