Added a test for building common 3rd-party libraries.
Libraries tested: ngAnimate, ngCookies, ngResource, ngRoute, ngSanitize.
FIX: build failed on modules that required the built-in 'ng' module.
FIX: false positives in angular module declarations detection.
FIX: one regular expression caused lockups sometimes.