Make path filtering smarter (RIPD-561)

* Break path liquidity checking into its own function
* Measure initial quality over minimum destination amount
* Test for available liquidity
move open paren to previous line?