Use paper.uid as Elasticsearch _id

The advantage of this is we can reindex the
database without having to worry about paper
duplication caused by changes in numeric id.
Fix tests