Merge pull request #2 from microjs/export-one-thing

export one thing
Bump to version 1.1
Patch fixes #3
Change package name to lex.
Removed the that closure. fixes #4
Rollback.
Added support for chaining.
setInput now resets the lexer.
Quick fix for previous commit.
Added support for components.
Fixed main property.
Added support for multiple return values from actions.
Added global patterns.
Quick fix - fixes #5.
Changed typeof to Object.prototype.toString.call - fixes #6.
Added end condition check - fixes #7.