Added locals support.
Added locals support.
Added tests for 'locals'
Merge pull request #9 from Volox/master

Added support for `locals`.

Thanks for the PR. Will push up to npm as patch version since we aren't messing with any existing interfaces.