Cleaned up window utility methods
Changed build script to generate AMD and CommonJS output
Extracted getOuterHTML function from EnhancedElement
Added defaultValue property to array first() and last()
Renamed config.ts -> config-amd.ts
Re-wrote debug.js in TypeScript
Removed custom JSON parsing since all browsers now support it natively
Minor refactoring and cleanup
Moved window utility functions to browser module