Abstract citation storage and move it into the State class

Towards accomplishing #228.