Use Api_messages to get message priority

Signed-off-by: John Else <john.else@citrix.com>
Fix .gitignore for obuild

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #1 from johnelse/api-messages

Use Api_messages to get message priority