added packages
move api specific stuff to lib
moved
node js library ready to go