[WIP] Initial implementation of prototype design.

Initial implementation of the CEM prototype.  Still a WIP, but issuing this PR so people can look at it.