Add mapping for inserting a new reference definition.

Fixes issue #5