Fleshed out to_dict, added ActionRelationship classes, some minor fixes