Moved ECMAScript Extensions

Moved extensions into a new declared module
MicrosoftAjaxBaseTypeExtensions which can be used to cast between the
real and declared type because lib.d.ts already has these types defined
and cannot easily extend them.
Added further tests and cleaned up tests.