Fix #16483: custom field API after remmoval of db_prepare_int calls
Fix #16486: Broken summary page following removal of db_num_rows calls
Fix #16487: Parts of manage_user_page broken
Whitespace fixes
Bugnote api: db_prepare_int() and db_query()

- Removed occurences of unused or uses of undefined c_XXX variables
- Removed one call to db_prepare_int()
- Replaced inline query parameters by bound ones, and calls to
  db_query() by db_query_bound()

Fixes #16482
PHP Doc fixes
Merge branch 'master' of github.com:mantisbt/mantisbt
Further backports of db_int*/phpdoc*
Further backports of db_int*/phpdoc*
Fix #16491: HTML/CSS for Tag View page
Fix HTML/CSS for Bug Group Actions

Fixes the various pages related to group actions, including both
standard and external ones
Fix #16495: Broken custom field API
Follow up fix for #16495
New Feature: replace captcha library with open source library. Adds audio support to captcha for accessibility [requires flash on client]

Ported from master-2.x branch

Resolves (Part or all) of bugs:

#0010972: openbase_dir breaks captcha generation
#0008796: The letters in the catchpa on account creation page are too small
#0010976: Remove instances of pass-by-reference (deprecated in PHP 5.3.0)
#0010028: Registrations by bots via captcha exploit
#0008462: Captcha will benefit supporting other than jpeg format
#0008129: Alternative to captchas
Remove legacy references to wingraphviz module that was removed several years ago
Sync in another batch of db_prepare_int/numrows/phpdoc stuff
Remove check for really old pre 1.x installer logic
RE-Fix category_get_id_by_name() doesn't find category

This is a cherry-pick of 3bd0e1ba64770a5e4faa67866cd822920523e2fa - the
fix had been reverted by fbd654083f061fcfcc8dc7229953cc44737889fa.

Commit ef0bbb87aecdc54e2b9112bf9f3a11a592dfdc4d introduced a regression.
Testing on the return value as if it were a boolean triggers an error
ERROR_CATEGORY_NOT_FOUND_FOR_PROJECT even if the category exists.

Now we do a strict check === false to ensure the error is only triggered
when the query returns no rows.
Remove test files added by mistake
Tests: add timestamp to category name

Reduce risk of error if a category with the same name exists from a
previous failed run.