Added __dir__ methods to Resource and Service, for introspection.