Introduce Reference class

Corrects a data loss bug in RIS export, but still failing tests.
Ignore composer.lock
More cleanup

RIS tests pass again