builds on typeScript 0.9.7

first step in modernizing codebase
crude migration to pass compilation

updated typescript dependency to 0.9.7
updated node definitions
applied very ugly typing hack for setInterval/clearInterval in HTTPCache.ts