Change license to MIT
Use typescript compiler lib.d.ts
Add simple test
Add travis config
Bump version
Merge pull request #24 from svallory/use-ts-lib

Add license and use lib.d.ts from typescript. Closes #11 and #16