expose c++ properties as js accessors
code style fixes
remove uneeded code
Merge pull request #11 from osmcode/lazy-accessor

Expose c++ properties as js accessors