[Serializer] Added XML attributes support for DomDocument in XmlEncoder.

This is a combination of 2 commits.

- [Serializer] Added encoding support for DomDocument in XmlEncoder

- [Serializer] Refactor code to allow setting <?xml standalone ?>

This commit refactors the createDomDocument(..) method in XmlEncoder
so
it can set the 'version', 'encoding' and 'standalone' attributes on
the
DOM document.

Code coverage of new code: 100%. Tests: pass.
[Validator] fixed StaticMethodLoader trying to invoke methods of abstract classes (closes #8589)
removed dead code and fixed CS
merged branch fabpot/validator-abstract-fix (PR #8592)

This PR was merged into the 2.2 branch.

Discussion
----------

[Validator] Fixed StaticMethodLoader does not try to invoke methods of abstract classes anymore

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8589
| License       | MIT
| Doc PR        |  n/a

Commits
-------

b41cf82 [Validator] fixed StaticMethodLoader trying to invoke methods of abstract classes (closes #8589)
merged branch fabpot/dead-code (PR #8572)

This PR was merged into the 2.2 branch.

Discussion
----------

removed dead code and fixed CS

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

7d58147 removed dead code and fixed CS
merged branch fabpot/console-fix (PR #8600)

This PR was merged into the 2.3 branch.

Discussion
----------

[FrameworkBundle] fixed regression where the command might have the wrong container if the application is reused several times

Commits
-------

1bd45b3 [FrameworkBundle] fixed regression where the command might have the wrong container if the application is reused several times
[routing] added ability for apache matcher to handle array values
[HttpFoundation] deprecated FlashBag::getIterator() method
[WebProfilerBundle] made toolbar listener instantiation conditional
[Console] fixed tests
Revert "[Form] Remove "value" attribute on empty_value option"

This reverts commit 9e849eb78bcc668a2b8aad39cb47e2ad32c73a47.

Reasons for the revert:

* https://github.com/symfony/symfony/issues/8478
* https://github.com/symfony/symfony/issues/8526
[Form] Removed the "disabled" attribute from the placeholder option in select fields due to problems with the BlackBerry 10 browser
Fixes link indices
[Form] Changed (Number|Integer)ToLocalizedStringTransformer::reverseTransform() to do rounding
[Form] Fixed: If a form is not present in a request, it is not automatically submitted
Revert "[Form] Fix of "PATCH'ed forms are never valid""

This reverts commit a2b15359d81563d52b62b4357407efa949a0706a.

Conflicts:
	src/Symfony/Component/Form/Form.php

The commit is reverted because it introduces a bug demonstrated by a currently failing test.
[Form] Fixed patched forms to be valid even if children are not submitted
Fix issue with \DateTimeZone::UTC / 'UTC' for PHP 5.4
merged branch jfsimon/fix-tests (PR #8618)

This PR was merged into the master branch.

Discussion
----------

[Console] fix tests

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes

Commits
-------

e4c1b30 [Console] fixed tests
merged branch jfsimon/issue-8130 (PR #8615)

This PR was merged into the master branch.

Discussion
----------

[WebProfilerBundle] make toolbar listener instantiation conditional

In the `WebProfilerBundle`, if `intercept_redirects` and `toolbar` options are both `false`, the `toolbar.xml` config file should not be loaded as the listener becomes useless.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8130

Commits
-------

17cbfc8 [WebProfilerBundle] made toolbar listener instantiation conditional