Correct execution order.  Directories and configuration should be configured PRIOR to package installation.  This is more conducive to customizing directories, since mysql_installdb is automatically run as a post-installation task.

Added basic SELinux support as well.