remove an extra database trip we don't need unless csv
remove extra debug
logging changes
refactor get_collection_doc
fix typo
more typos
add tiids assignment
unittests passing.

topsy counts keep going down.  don't know why.  is there a default time window we aren't specifying?  look into when we upgrade to new api.
new improved unittests for collection.get_collection_with_items_for_client
aliases need to be appended not overwritten.

not sure why we had integrity errors before.  trying again.
first try loading the metric data separately from item data
try moving expunging up
turn refsets back on
try newer version of simplejson to see if faster
don't update the item doc when we update the metrics
don't remove spaces as nonprinting characters
create database tables if they aren't there
add drop everything sqlalchemy recipe for cleaning database before unittests
change lingo from update to refresh while poking around
move to loading metrics explicitly rather than eagerly, and refactor finding or creating new items

move to from_tiid to get full item object that includes metrics