Minor import cleanup in tests
Implement explicit iterator closing (issue #19)

Added Iterator.close(), and a context manager to automatically closes an
iterator. Fixes issue #19.

Also updated the user guide, the API docs, the tests, and NEWS.