Switched to a local branch of DefinitelyTyped

which contains the definitions of express 4 api
Updated to newer versions

make use of typescript 1.0 and express 4.0
added the compile task

which does everything but compiling
Addapted the express 4.0 api
Removed useless commented code
Inlined small functions