(refactor) Move client-side dependencies into lib folder, remove node_modules folder

I wasn't quite sure what to do about socket, as it's multiple files, so I kind of left it there so I wouldn't break anything.