Tidying up:

* Comments
* Fix returning an empty list instead of empty dict from get_snippets
* ids_only for get_range returns a list of IDs instead of documents
* Fix purge to use new ids_only behaviour correctly
Minor tidying tweaks. Unicodify string literals
Comments. Fix an issue where you could only iterate through an ids_only query once... oh dear