upgrade to typescript 0.9.0

also upgrade mocha to 1.11.0 and modify tests to handle slightly
different whitespace output with typescript 0.9.0.