Some restructuring, some bug fixes

New “todo” directory for 0.5 features that need to be backported to
0.4.x platforms.