Changed cloned branch to 3.1 tag.
Changed buildout and server to run under intended user (plone_buildout and plone_daemon).
Sudo-ed owner of git clone commands to ensure correct ownership of the source contents.
Merge pull request #1317 from Jondeen/scriptfix

Scriptfix