Ar multiparameter

redux of https://github.com/attr-encrypted/attr_encrypted/pull/80. depends on https://github.com/attr-encrypted/attr_encrypted/pull/114 because merge conflicts :(

@sbfaulkner @danielnc