Attempt to fix spurious travis failures
Guarantee C locale

*  Remove all calls to setlocale to ensure that the global
   locale is always C.

*  Also replace beast::SystemStats::getNumCpus() with
   std::thread::hardware_concurrency()
Gracefully cast from std::thread::hardware_concurrency
Silence clang warnings
Remove Og from debug mode

Last time I used gdb, iterating over a directory's `Indexes`, each uint256 printed as `<optimized out>`.

Debug mode is for debugging ...
SHAMap performance improvements (RIPD-434)

This reworks the way SHAMaps are stored, flushed, backed, and
traversed. Rather than storing the linkages in the SHAMap itself,
that information is now stored in the nodes. This makes
snapshotting much cheaper and also allows traverse work done on
behalf of one SHAMap to be used by other SHAMaps that share inner
nodes with that SHAMap.

When a SHAMap is modified, nodes are modified all the way up to the
root. This means that the modified nodes in a SHAMap can easily be
traversed for flushing. So they don't need to be separately tracked.

Summary
* Remove mTNByID
* Remove mDirtyNodes
* Much faster traverses
* Much Faster snapshots
* New algorithm for flushing
* New vistNodes/visitLeaves
* Avoid I/O if a map is unbacked
[checkpoint] Testing out the functionality of the ws.
[checkpoint] Use new wallet class in ripple-lib
* Pending pull https://github.com/ripple/ripple-lib/pull/161
[checkpoint] Submit and process a transaction
[checkpoint] Simulate random transactions over time
[checkpoint] Ledger summary stats.
[checkpoint] Don't output the full ledger.
[checkpoint] Need a newer version of ripple-lib
* Force exit on server disconnect.
[checkpoint] Organize a function library. Attack scenario.
[checkpoint] Create a bunch of trustlines for 1 account.
[checkpoint] Up the ledger_accept timeout
[checkpoint] more timing tweaks
[checkpoint] use the function library in test4.
[wip] Transaction rate measuring.
[wip] more logging