added web end points to retrieve available rules/roles
Merge branch 'working'