Add dependencies
Refactor auth
Refactor crypt.js
Refactor index.js
Add test files
Add .gitignore