Create App API v0.1.

This specifies the entire API available to app authors.
Added functions for the app API v0.1.

The functions are accessors for structure elements. The API says to
access structures via these functions instead of exposing the
underlying struct definition.
Merge pull request #143 from lukego/api

Create App API v0.1.