move inline js into external files
add std license header and placate jslint
add comment for future about no inline scripts
fix jshint error and add license header
fix (c) year
fix jslinst errors and refactor loops

loop code in dependencies.js refactored to meet Brackets coding
conventions.
oops, of course can't use CollectionUtils...

because they need to brought in via require which shouldn't be used here.
Merge pull request #4374 from maks/no-inline-js

move inline js into external files