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