assets: requirejs exclude option

* Adds support for exclusion of files in RequireJS builds, to prevent
  files from being included multiple times. (closes #2411)

Signed-off-by: Lars Holm Nielsen <lars.holm.nielsen@cern.ch>
119: D102 Docstring missing
123: D102 Docstring missing