Implement hash style getters and setters for document object