moved everything important for the engine into lib/ksengine; updated imports accordingly