Refactored parser.js and related tests into new namespace syntax.
Refactored metadata-manager.js and related tests into new namespace syntax.
Refactored stepchart-generator.js and related tests into new namespace syntax. Added test global constants javascript file.