added locals support

Added locals support.
pass in data to bind to using options.locals
Merge pull request #2 from ArsalanDotMe/patch-1

added locals support