Add support for fetching the lib32 dist when using LFTP and building
a Jail on amd64.  This is required for some ports.

Submitted by:	decke
Sync latest port fail reasons with pointyhat.

Approved by:	marcus@
Tie PHP files for the new hooks and buildgroup features to the build.

Reported by:	decke@
Add correct file to WEBUITpaefchenDATA.
Use the proper '' escape sequence instead of \'.

Reported by:		Sevan <venture37@gmail.com>
Make sure the user_id variable is set before referencing it as this
variable is only set if a user is logged in.
Don't use the maintainers array if no ports are build so far as in this
case the array is empty and will generate some PHP warnings.

Reported by:	Sevan / Venture37 <venture37 AT gmail.com>
Properly escape single quote charatcers to fix setup with pgsql.

Submitted by:	Sevan <venture37@gmail.com>
Correct a typo.

Reported by:		John Marino <marcuscom@marino.st>
Fix PHP warnings in case no builds were configured or no ports are build so
far. The fix if the maintainer array is empty was already committed to the
paefchen template so fix this only in the default template.

Reported by:	John Marino <marcuscom AT marino.st>
Be sure to remove build_ports_queue entries before removing a build.

Reported by:	John Marino <marcuscom@marino.st>
Add support for using Subversion to create and update Jail source trees and
PortsTrees. As Subversion could be used with various protocols (like
http(s), svn, svn+ssh) and the directory structure on the SVN server may
vary there are two new arguments:
-P for the protocol and -D for the directory layout.

So http://svn.freebsd.org/base/head will result in:
-H svn.freebsd.org -P http -D base/head

To create a CURRENT jail with Subversion you could use the following
command:
# cd /usr/local/tinderbox/scripts
# ./tc createJail -j 10 -u SVN -d "FreeBSD CURRENT" -H svn.freebsd.org \
-P http -D base/head

Approved by:	marcus@
Rename link to the tarball of a failed port from "package" to "wrksrc" to
be consistent with the other templates.
Initialize line variable. Otherwise the lines are not counted properly
so multiple logfile lines are displayed in one markup line.
Update README to new format

Approved by:	marcus
Fix display of user_id as revision 1.8 of display_login.tpl broke parsing
of the user information in header.inc.tpl and therefore the user_id
was not available which caused that the Modify Me page was not working.

Reported by:	Alain Petignat on IRC
Fix several PHP warnings for webui users with restricted permissions.

Reported by:	Alain Petignat on IRC
Fix several PHP warnings in Tinderd Administration view for users without
permissions for all available builds.

Reported by:	Alain Petignat on IRC
Fix a typo.
Fix indentation of getUserById function.