Improve the handling of implied amounts
Improve the handling of implied amounts

Still needs work, though. In particular, handling multiple currencies will
require a full rewrite of the deduce_implied_amount routine

simon-v/bean-add