Create App API v0.1.

This specifies the entire API available to app authors.
Make API modules global.

These modules are now in the global namespace (_G) and can be used
without require or prefix: config, engine (alias of app), link,
buffer, packet, timer, main.