Flesh out api project.

The contents of api/ compile in 2.10 and 2.11, and are
also incorporated directly into the build itself.
v0.3.0-M3.