Load AMD modules

Must be explicit about requirejs dependencies if we wish to have
r.js include them as part of the optimized bundle. Scripts are otherwise
loaded at run-time.

 - Search abstract syntax tree (ast) for `view` helpers and extract the
   first argument (the name of the module)

 - Modify AMD wrapper to include detected dependencies

 - Injecting dependencies into the define function allows a view to load
   modules in a relative manner './some-view' vs 'thing/stuff/some-view'