contractcourt: move breach handling into its own function
contractcourt: move breach handling into its own function

This commit refactors the breach handling logic into its own function
so that the related code can be unit tested.

aakselrod/lnd,aakselrod/lnd