added a reverse index of user uploads + rake task

This adds a reverse index of user uploads (ie. mapping posts to uploads).
There's also a rake task (`rake images:reindex`) to backfill the index.