Adds a get_record helper.

Adds a helper to return a single record object. Arguments are similar to
`get_records` and include:

* $recordType
* $params - An array of search parameters

This makes it a bit easier to query for and use a single record. Instead of
having to do this:

```
$record = get_records('Item', array(), 1);
$record = $record[0];
```

You can use this function:

```
$record = get_record('Item', array());
```
Merge pull request #591 from clioweb/get_record

Adds a get_record helper.
Merge branch 'master' into stable-2.1