[ticket/10411] New class interface and unit tests for legend and teampage

PHPBB3-10411
[ticket/10411] Add new table for teampage

PHPBB3-10411
[ticket/10411] Add new classes for legend and teampage handling

PHPBB3-10411
[ticket/10411] Remove duplicated ids from the template

PHPBB3-10411
[ticket/10411] Fix comment in interface and some problems in teampage

Category names on the teampage can not be empty.
Also fixing a problem with the delta when moving a category.

PHPBB3-10411
[ticket/10411] Use new teampage and legend class in ACP and memberlist

PHPBB3-10411
[ticket/10411] Fix create_group and delete_group functions

PHPBB3-10411
[ticket/10411] Update schema and fix database update

PHPBB3-10411
[ticket/10411] Fix missing functions in unit tests

PHPBB3-10411
[ticket/10411] Use DIC to get the groupposition classes

PHPBB3-10411
[ticket/10411] Use AJAX to move items up/down and delete them

PHPBB3-10411
[ticket/10411] Use the objects instead of the deprecated wrappers

PHPBB3-10411
[ticket/10411] Fix docs and remove empty sql array parts

PHPBB3-10411
[ticket/10411] Fix logic error when editing/creating a group

PHPBB3-10411
Merge branch 'develop' of https://github.com/phpbb/phpbb3 into ticket/10411-2

* 'develop' of https://github.com/phpbb/phpbb3:
  [ticket/11198] Remove additional asterix as /** is doc-block only
  [ticket/11200] Add a reminder comment.
  [ticket/11200] Make cache available during container construction
  [ticket/11199] Match cache purge container files against container_*
  [ticket/11199] Purge dumped container correctly on cache purge.
  [ticket/11199] Revert merge of 'marc1706/ticket/11199' into develop
  [ticket/11199] Cache purge does not remove dumped container
  [ticket/11198] Store the swapping partners in vars and simplify the logic
  [ticket/11198] Correctly set links after an item is moved up/down with AJAX
  [ticket/11197] Prefix the css classes for the small arrow with "arrow"
  [ticket/10879] Remove arrow icon from attachment link in editor
  [ticket/11195] Condense logic, remove improperly formatted if()
  [ticket/11194] Service tag data is stored in an array so access it correctly
  [ticket/11193] Instantiate a single collection_pass for all collections
  [ticket/11190-develop] Functional tests purge cache before running.
  [ticket/11190] Functional tests purge cache before running.
[ticket/10411] Use new ajax callback name row_up/row_down

PHPBB3-10411
[ticket/10411] Move globals to the top and use array for cache destroy

PHPBB3-10411
Merge branch 'develop' of https://github.com/phpbb/phpbb3 into ticket/10411-2

* 'develop' of https://github.com/phpbb/phpbb3: (204 commits)
  [ticket/11219] Coding guidelines and naming consistency changes
  [ticket/10841] Revert more whitespace changes.
  [ticket/10841] Revert whitespace changes.
  [ticket/10841] adding space after if
  [ticket/10841] removing unnecessary spacing
  [ticket/10841] changing affectedrows check to COUNT in sql
  [ticket/10841] Modifying style and language selectors in UCP
  [ticket/11247] Fix wrong property reference in flock class.
  [ticket/10602] Avoid a race condition.
  [ticket/10602] Use last_queue_run for its intended purpose.
  [ticket/10716] Collect standard error from executed php process.
  [ticket/10716] Skip test if php is not in PATH.
  [ticket/10716] Exclude our dependencies from linting.
  [ticket/10103] New and improved wording.
  [ticket/10716] Only lint on php 5.3+.
  [ticket/10103] Assert with messages.
  [ticket/10103] assertLessThan/assertGreaterThan.
  [ticket/10103] Inline assignment is bad?
  [ticket/10103] $rv had too few characters.
  [ticket/10103] Correct flock class documentation.
  ...

Conflicts:
	phpBB/config/services.yml
	phpBB/includes/groupposition/legend.php
[ticket/10411] Rename template variable CUR_ to CURRENT_

PHPBB3-10411
[ticket/10411] Add a comment why we left join the group table

We left join the group table because we want to check that the group
does exist there aswell.

PHPBB3-10411