Refactoring of Wikimedia Commons code - mostly code formatting; Larger refactoring coming soon