refactor / flatten promises in server.js
refactor / flatten promises in db.js
refactor / flatten promises in manager.js
refactor / flatten promises in server.js
refactor / flatten promises in db.js
refactor / flatten promises in graphdb.js
minor typo fixes
indentation fixes
Merge pull request #1 from codemix/promise-refactor

Promise refactor