Wrote the rest of the API

Finished writing the node.js version of the API