Moves dependencies around; Adds saving to pouchdb