Node.js modules now build and run on Mac OS.
Added TQm::TIndexKey wrapper to nodejs.h.
Cleaning up nodejs code:
 - Rearranged function order, in .cpp files to match order in .h files.
 - Moved implementations from .h to .cpp
 - fixed few bugs
 - few minor changes
Merge pull request #141 from blazf/master

NodeJS modules build and run on Mac