Implemented the high level calculation routines

The binary for creating high level stuff isn't available yet, so I dummied that out, but implemented and tested the rest.
If you're doing this as a foreign key to lowlevel, you don't want it to be "SERIAL" (i.e., autoincrementing), you'll want it to just be an INTEGER.