Completed (I think) port of core functionality

Ported over the rest of the core framework.  There are some workarounds
that will need to be removed once autoloader is complete.