Add helper function ref ir.model.data

Call get_object from ir.model.data registry using common external_id xml syntax

`get_object` is used a lot in session scripts, there is no easy function for ref in python code (in 7.0, at least)

This makes getting objects from their external_ids much simpler:
```python
name = self.ref('base.user_root').name
```