Travis: use port 8080 instead of 80

Fixes build errors with PHP built-in web server. By using port 8080, we
no longer need to use sudo since it's only needed for port 80.

This a backport from master branch, and includes the revert of commit
9315a7398328125578efdd189a443bb11313968a.
Travis: delay before creating db with pgsql

We occasionally get build errors with pgsql when creating the database

psql: could not connect to server: No such file or directory
	Is the server running locally and accepting
	connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

Adding a short delay before calling psql should hopefully reduce the
frequency of these errors.
Allow update of existing project document

Prior to this, it was impossible to update a document's title or
description without uploading a new file, as MantisBT would trigger an
error.

Fixes #17405
Add error param when updating project doc with empty title

Added missing error_parameter() call so that when attempting to update
an existing project document with an empty Title, the error message
indicates which field is required.

Fixes #17407
Remove extract() call on untrusted input

As per recommendation in PHP manual http://php.net/extract, drop use of
extract() on input from $_FILE superglobal.
Filter API: add missing table prefix

When building the where clause for free-text search, the filter API did
not prefix the 'summary' column with the table name.

Fixes #17457
Enable all tests on Travis

Backport of 75fde4243e4decc84c5f2d9cdf6144b4eda6af1d from master

Fixes #17229
minimal travis test [ci skip]
debug script
Revert "debug script"

This reverts commit 12a957cd7fc602f915e545cc66ace20126ac019c.
Revert "minimal travis test [ci skip]"

This reverts commit e89cd9c364a296088c322d485c484870e8a96cff.
Fix broken Travis build

Delete closing PHP tag from generated config_inc.php

Fixes #17229
Add comment to document added configs' purpose