Omeka 2.2.2

We needed a working version. This works for Omeka 2.2.2. It is @ahcurrier's changes with @daveWid's revisions. Since @ahcurrier has not responded to the thread I'm requesting this pull request be merged instead and the other one be closed.