Complete revamp

Removed HL7 and SQL classes, and created a new class, with subclasses
for each message segment instead of message type.