(bug 5231) Improve the 'api' role to be a proper role.

As we discussed in IRC