Moving option to disable auto inclusion of view js files to helper config

- So there is no need to extra work in case someone wants to disable it (ie. implementing a beforeFilter/beforeRender into the controller to disable it).
- The files are also included using AssetCompress->addScript(), so if there is any '//= require' it will also identify and include them.
- In order to create the tests was needed to instantialize AssetScanner