DomainsApi module

- Moved "Record" inline module to lib/DomainsApi.pm
- Added getDomain() method
- Added global error reporting variable $errstr