Changed node type and label source into enums. Added Hibernate and JAXB
mapping classes so that the enums are serialized and deserialized from
the database and XML properly.