Updates to make plugin compatible with Omeka 2.0.