Added support for relation by array attributes

fixes #1249
fixed issue with indexBy and array valued relations
Update ActiveRecordInterface.php

fixes #3026
#4310: Removed `$data` from signature of `yii\rbac\ManagerInterface`
Fixed test break.
#4388: CORS filter fixes:

- Upgrade the documentation to match filter code
- Fix bad default behavior with Access-Control-Allow-Credentials
- Fix missing "s" in header Access-Control-Request-Method / Access-Control-Allow-Methods
minor refactoring of FileValidator.
Fixes #3887
Fixes #4342
Merge branch 'master' of git://github.com/yiisoft/yii2 into 4342_mssql_driver_updates
Fixes #4370: fileinfo extension is required for FileValidator.
add support for array valued attr relations to unlink and link
Update CHANGELOG.md
Merge branch 'master' into array-attribute-relations

* master:
  Update output-data-widgets.md
  Fixes #4370: fileinfo extension is required for FileValidator.
  Fixes #4342
  Fixes #3887
  minor refactoring of FileValidator.
  Doc translate for rest-resources
  Better fix for Dropdown container options
  #4388: CORS filter fixes:
  Fixed test break.
  #4310: Removed `$data` from signature of `yii\rbac\ManagerInterface`
  Update .travis.yml
  Update ActiveRecordInterface.php
  Fixes #4384.
  Sphinx distributed indexes support provided
  typo fix [skip ci]
  Fixes #3611: Refactored query caching.
fixed test break

how did that manage to pass before...?
Check availabilty field in BaseActiveRecord::populateRecord

check with Object::canSetProperty()

fixes #4305, close #4211
Better Windows detection
Improved strtr calls
Used substr_compare instead of substr when we don't care about result
Avoid method call in for condition