Add error codes and comments specifying calling semantics for exported policy manager functions.
Merge branch 'errcodes_comments' into netgroups

Provide calling semantics in comments and use error codes in exported functions.