Fixed SaxParseTest broken by earlier MdTermDAO change, fixed
non-determinism caused from earlier RequireJS change by implementing
shim configuration, fixed a bug with the ContextMenu, and cleaned up
some javascript code.