Typescript port

The typescript port I mentioned the other day - now with a Gruntfile.
Yes this is a good idea. I missed that bit when I was reading the typescript docs.