Added explicit 'count' method to collections for returning number of entries
Introduced sostore-specific exceptions.  Provided a significantly more robust random id generation routine (handles giant datasets).