How could I create a button to loop through entries and re-save them?
If all you want to do is re-save all of the entries without making any modifications to them, you're best bet is to use the completely undocumented TaskService and trigger the ResaveElements task.

There is an example of how to do it from your plugin here.