Add accessor methods for attribute

Add is => ro and is => rw support to attributes.
Defaults to 'ro'.