Feature/rename citations to references

Renamed citations model to references as discussed, fixed some issues with transactional saving and generated random URIs where needed.