The new Context-based system compiles!

Nothing more can be said. Getting it to compile took a lot of energy so I'll
clean it up and polish it in further commits.