Update Modules.php to skip over hidden files or hidden directories.
Update $pages->save($page, $options) to accept the 'adjustName' option. When true, the $pages->save() will adjust the 'name' property (if necessary) to ensure it is unique. Also improved the logic of page corrupted detection. Now it takes into account which field was corrupted (by being set when output formatting was ON). If the corrupted field won't be saved as part of the $pages->save(), then it won't prevent the page from saving.
Updates to ProcessPageAdd: Made it so that there are separate Save and Publish buttons for when the option is there. Previously it just published pages that were publishable (i.e. pages with only a title field). Now it gives you the option. The other update here is that if you add a page with a name that already exists, it will automatically adjust the name to be unique (and give you a warning) rather than making you adjust the name yourself.