Reorganizing C++ third-party dependencies

Also removes the now no-longer-used Mongoose source code.