Here are the design notes that I wrote up. These are very rough.
A preliminary high-level design spec is here.