refactor(ngDependency): move print out of scan

scan() now just do scanning and return the compiled result.
The result is exactly angular.modules object but this makes
code more modular.