Merge rules before applying and saving to file

Multiple rules that have the same subject and object labels
and are on the same rules set are merged together in one rule.
Thanks to that only one rule is written to kernel (or to file),
but it gives same final result.

Signed-off-by: Jan Cybulski <j.cybulski@samsung.com>