Added API for setting iRules

Change-Id: I2b3e62b4d9f0e2308aa197c0bdc9fc6bb049a17e