xenserver/PR-1455

This is some work on PR-1455 (new alerts grade system)  left over.