Preliminary integration of Microcosm

Compiles fine, however the functionality seems to be broken somewhere.