Support for public writable repositories

See #547.