Use factory file so JS used by studio_xblock_wrapper.html goes through RequireJS Optimizer

The code change is up on my sandbox (http://studio.cahrens.m.sandbox.edx.org/course/validation/validation/validation).

You can see there that the factory file is loaded instead of the individual model and view files.

@andy-armstrong and @polesye please review
Is it necessary to use `jquery` here? Do we use it only for `$.parseJSON`? If so, can we use native `JSON.parse` instead?