Implemented CanaryMod Recode project, stage 1.

Now finding and fixing bugs etc