Added the source files for the grid view (migrated from require.js app, not tested). Added initial support for AMD to grid view.
Fixed issues discovered while building the example for the grid.