Rename reference#index to #number
Change references from a hash to an array. Rename reference#ref to #id
Change citation groups to have an id property and references refer to groups by id