refactor(ngDefine): remove ngDefine references and uses

refactor(directives): remove ngDefine

refactor(resources): remove ngDefine

refactor(plugin): remove ngDefine

refactor(services): remove ngDefine

refactor(cleanup): remove unneeded file and code formatting

refactor(libs): arrange the paths to AMD modules
test(environment): add a karma test environment
merge conflict
merge conflict