Added AMD package main to load the sub modules properly from RequireJS.

Allows bundle to register sub modules to requireJS context.