Split a bunch of functionality into analysis thread, changed to cyclic buffer, readied some GLFW stuff for debug visualization.