record: Slight refactor of reference panel
record: Implement citation style selector

This implements a client-side citation generator and adds the ability to
switch between them.

Issue #256.
Merge branch 'issue/256'