Change all res.json bare id to object with _id property

$resource on the front end always either expects an object or an array of objects. Sending back bare ids was breaking angular, so I changed all of the res.json sending back an id to send back {_id: id} instead.