Extracted existing code as lib
Implemented all missing methods from NodeJS as dummies