Extended core functionality

Added lots of goodies, including: addRecords for multiple items,
getCollection for returning ordered or unordered segments. More stuff
too, I just can't remeber.