Changes to DomainsApi.pm

- Added method getRecord()
- Moved API calls to method _apicall