start re-writing lib for node.js and rest architecture
fix all functions and add all tests
fix git url