Move iterators into separate package

Also reduce API exposure and use standard library more - and fix bugs I
previously introduces in mongo.
Cleaning and TODOs
Remove dead var
Remove redundant loggin functions
Merge pull request #44 from kortschak/iterator

Move iterators into their own package