Add getProperties() and other useful methods to HalResource.