Modified mongoose config so that now the mongoose module will be injected
Injected mongoose module to mongoose.js
Refactored deleteSnippet to resolve with the deleted snippet after the snippet is deleted.
Added tests for snippet data for adding, updating and deleting snippets.