Fixing API tests
Code cleanup
Refactored out all file related interaction into new db.js. You can now save tasks to file. Closes #40