Move addition of repositories before apt-get update.
Fix mesquite owner/permissions.
Minor fixes.