Do not crash when parsing malformed Bower JSON file, log a warning instead.
Fix dependency resolving,
- use stack instead of recursion (escapes stack size error);
- check for cyclomatic dependencies.
Merge branch 'fix-dependency-resolving'