Update API Pages

The new API pages has the following changes:

* All data is passed via a context object, and is not inline in the templates
* All examples show the example source, the context object being passed in, and the rendered output
* Examples have been moved to the top for every section. The API reference follows the example.