Change  Reference#'ref to ref_id in db and #id in json.  Store references as an array instead of a hash
Merge branch 'master' into feature/reference_restructuring
Fix tests
Merge pull request #7 from ploslabs/feature/reference_restructuring

Change  Reference#'ref to ref_id in db and #id in json.  Store references as an array instead of a hash