Bug 939925 - Catch exceptions when recording resource usage; r=mshal

--HG--
extra : rebase_source : a9d1c353ae82376cac561c01c94698bf49a9777f
Bug 937803 - os.path.exists should work with MockedOpen; r=glandium

--HG--
extra : rebase_source : 567b70b6a75f3c918da2c99ceb490ac569919ed0
Bug 928195 - Part 1: Remove trailing whitespace from Codegen.py; r=bz

--HG--
extra : rebase_source : 09a7ed7933ef3c6efac617d3300b709ac2b3f26e
Bug 928195 - Part 2: Provide a mach command to run WebIDL parser tests; r=bz

--HG--
extra : rebase_source : ff200d7a77532dae9e022d03cccc624ea1f77c63
Bug 928195 - Part 3: Consolidate all WebIDL Python logic into mozwebidl module; r=bz, froydnj

--HG--
extra : rebase_source : 0d8f664ecda7a92b6fba768a0dd0fd867c7d0ed3
Bug 928195 - Part 4: mach command for generating WebIDL example files; r=froydnj

--HG--
extra : rebase_source : c2c2667cae91eae9e444f9d7cbd2750a5207af5d
Bug 928195 - Part 5: Add docs for WebIDL and the build system

DONTBUILD (NPOTB)

--HG--
extra : rebase_source : 24ea7ebca4ae151073502267b5123d2160b28d8e
Bug 928195 - Part 6: Rewrite WebIDL build system integration

WebIDL build system integration has been rewritten from the ground up.
Changes:

* GlobalGen.py, BindingGen.py, and ExampleGen.py have been removed in
  favor of mozwebidl.py.

* Static .webidl files are now processed directly in their original location
  and aren't copied to the object directory.

* Generated events <stem>.cpp files are now compiled into the unified
  sources. Previously, only the <stem>Binding.cpp files were compiled
  into unified sources.

* Exported .h files are now generated directly into their final location.
  Previously, they were generated into the local directory then
  installed in their final location.

* The list of globalgen-generated files now lives in Python and isn't
  duplicated in 3 places.

* The make dependencies are much simpler as a result of using a single
  command to perform all code generation. The auto-generated .pp file from
  code generation sets up all dependencies necessary to reinvoke code
  generation and Python takes care of dependency management.

--HG--
extra : rebase_source : bde37d7aab3bd224ca8611f3ba4aaf6311e2faab