Add the ability to configure rules file

Allows to specify a rules xml file url to load rules from.

Change-Id: Iacd5f411a1353caff38bcd838649b87f9f3c5a24