Added AMD wrappers to controllers
Added AMD wrappers to model js files.
Wrapped into AMD module the rest of the files.