Upgrade to Typescript 1.0