(bug 43291) repo API module for adding a reference

Change-Id: I70e386136e4e331a7b66ba1f79a628102e269469