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
@mkanoor The test name "from class" seems redundant since we are in the test for the ```MiqAeClass```.  I think you can drop the context and just have ```it "#domain"``` for each of the tests in this PR.