Minor fixes

- Response in express of the form "res.send(status, message)" has been deprecated. Updated responses to use the updated format of "res.status(xxx).json(object)" or "res.status(xxx).end()"
- Fix: If the :id attribute in the API does not evaluate to a valid mongoose ObjectID, it produces a Cast error.
- Removed some unnecessary dependency injections where they were not being used.