7.0 refactor account_partner_required

refactor account_partner_required:
* add extension points for policies
* use constraints for readbility and robustness
* slightly adapt the test to work around an issue in account_constraints (which allows the simplification of the travis configuration)
@bwrsandman gave me a hint to get this called without this trick using a lambda expression. Can you refresh us the method, Sandy?