Lots of fixes to the TypeScript definition file.

In order to get everything working, I had to make several interfaces
"global". They were renamed with the prefix "Durandal" to prevent name
collision. The "durandal/typescript" module was removed since it was not
going to work.