enable template rule for each profile

from the rest api, the only way to create rules is to have custom rules defined in the default profiles. This pr provides that implementation. Basically it just adds a multi cardinality rule to the profile.

This way is the now recommended way of defining rules. to be discussed if the xml defined rules can be deprecated at some point