Add automatic configuration for MongoDB headers and libraries.
Remove rapidjson and restclient dependencies.