Added some serialization

Added some of the serialization intended for the saving of items and so
on. It's a pain in the butt.