Remove RPC based server test in C++: fixes #322

Moved test from servers to core/driver, and
refactored test and related code. In addtion,
deleted config files for servers.
This commit has some fixes, double-free bug in stat,
and ensure to clear weight_manager in driver.