Switch to namedtuple for permissions

This makes callers more convenient.

Also bump to 0.0.5