Sam: Move benefit logic into separate module and implement prioritising ...

...of jobseekers-allowance in flow.