refactor user data script snippets into separate files, to simplify management of these scripts.
merge CentOS-ish changes with script refactoring