Optimized asset handling. Removed decl.js tools.
Added $window namespace handling.