Add support for protected (&) and owner (~) ranks

Fixes #61.