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
Merge pull request #325 from mkanoor/domain_for_ae_objects

Added a method to get the domain object from ae objects