Beginning of slot api infrastructure, and, uh...

No idea.  It compiles, anyway.