Issue #83: Fix bug with history

Altered the output to show precisely how much was sent and received by each address we care about.
Note that the history now returns the outindex and better ordering.
Merge pull request #85 from jimmysong/83

Issue #83: Fix bug with history