Refactor into a set of enums that describe the behavior of reading various element types. Fill out most of this behavior.

There are some oddities in this format. For example, storing strings as shorts requiring us to strip off the characters.