Added a method to get the domain object from ae objects

Namespace, Class, Instance, Method objects in Automation model now
all have a method called domain which returns the domain object
I would suggest:
```ruby
describe "#domain" do
  it "returns the namespace's domain" do
    ...
  end
end
```