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>