First steps to converting runtime to pure C.

1. After some thought, probably the best way to go about implementing
the runtime.
Converted runtime library to pure C.

1. Compilation broken at the moment, transfering development environments.