Multi main builds and docs.

This pull request enables the `main` option to the build function to be an array of multiple main modules.

This allows the multi-app and multi-progressive-bundle builds to work together.