Add a ledger_get RPC command to fetch a ledger from the network.

Stole JoelKatz's change, fixed a crashing issue on incomplete data, changed to use new directory structure.