Add initial support for 1-1 relations
Simplify the definition of ref

It's better to use ObjectId type here just like with refs.
Make it possible to add extra parameters for ref and refs

This way a field may be set as required for instance.
Bump version