Use a transaction when saving a wiki page
Code cleanup