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.
You'll probably want one of these indexes on highlevel_json, and ultimately code that ensures it doesn't insert things that are 100% the same (though this is possibly less likely with the highlevel data, not sure).