Fix issues with Resque DirtyExits and handle existing indexes on deployment.