Topic/rename ref id to ref

(has a commit from another PR on it because schemamigrations are best done sequentially)

Ref is a foreign key, and not a integer representing an id, so it
should not end in '_id'. It is important to change this to ref,
because django automagically exposes the '_id' reference for getting
at the id of a field efficiently. In fact, with this foreign key
called 'ref_id', the database column on audit is called 'ref_id_id' !