Update Dependencies and Fix Pending Request Handling

Updated to use new versions of mongodb and node.

Fixed the handling of pending requests.