Item12671: switch autobuild to Getopt::Long

this introduces:
    --autobuild (previously: -sven)
    --stable (build configured stable branch instead of trunk)
    --update (update this script from svn)
    --verbose

git-svn-id: http://svn.foswiki.org/trunk/core@17115 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
Item12671: fix checkout of stable branch

also: log removal of unknown files, allow working/tmp to already exist

git-svn-id: http://svn.foswiki.org/trunk/core@17116 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
Item12671: make webspace configurable

git-svn-id: http://svn.foswiki.org/trunk/core@17117 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
Item12671: make email configurable

and use local sendmail for easy mail sending

git-svn-id: http://svn.foswiki.org/trunk/core@17118 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
Item12671: fix MemoryCycleTests (wouldnt find setlib.cfg otherwise)

git-svn-id: http://svn.foswiki.org/trunk/core@17119 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
Item12671: add $foswikihome/lib/CPAN/lib to FOSWIKI_LIBS when calling build.pl

...otherwise it wouldn't find Class::Load. This should really be put in
@INC automatically, not sure why this is not (no longer?) the case.

git-svn-id: http://svn.foswiki.org/trunk/core@17120 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
Item12671: define $cvs before using it

git-svn-id: http://svn.foswiki.org/trunk/core@17121 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
Item12671: make sure rootTmpDir does not contain spaces

$this->{project} can apparently be "Foswiki-1.2.0_999 svn-auto17114",
build scripts elsewhere don't expect spaces in directory names (e.g.
when exporting variables on the shell)

[and I'm not sure I like how perltidy made this look...]

git-svn-id: http://svn.foswiki.org/trunk/core@17122 0b4bb1d4-4e5a-0410-9cc4-b2b747904278