ripple/rippled — pull request #553 by vinniefalco (2014-09-13 21:44:07+00:00)
Title: Medley: Cleanup, better Config, various

```
// Example of new API for getting config settings:
// This goes in the class implementing the logic instead of
// being all grouped in Application.cpp
//
auto const& section = getConfig()["overlay"];
setup_.test_client = get (section, "test_client") != 0;
setup_.autoconnect = get (section, "autoconnect") != 0;
auto const& superpeer = get (section, "superpeer");
if (superpeer == "never")
setup_.superpeer = Superpeer::superpeerNever;
else if (superpeer == "always")
setup_.superpeer = Superpeer::superpeerAlways;
else
setup_.superpeer = Superpeer::superpeerAuto;

// Corresponding entries in .cfg
[overlay]
test_client = 1
autoconnect = 1
superpeer = never
```