Fix StringHelper::substr() call.
Merge pull request #919 from ekerazha/master

Add data padding and key derivation.
Merge pull request #920 from bixuehujin/fixed-exception-toarray

Incorrect array representation when has previous exception
refactor Exception::toArrayRecursive().
fixed test break.
Fix phpdoc.
Merge pull request #921 from ekerazha/master

Fix phpdoc.
Merge branch 'master' into elasticsearch

* master: (157 commits)
  Fix phpdoc.
  fixed test break.
  refactor Exception::toArrayRecursive().
  Fix StringHelper::substr() call.
  Incorrect array representation when has previous
  Add data padding and key derivation.
  Fixed beforeCopy option.
  doc fix.
  Added missing beforeCopy option to FileHelper::copyDirectory
  Renamed ListViewBase → BaseListView
  Fixes #915: helper classes renamed again
  Renamed YiiBase to AbstractYii
  reverted doc change: the original one is correct.
  Renamed base helper classes
  Advanced application: added applying migrations to readme
  fixed typos
  Advanced application: init is now automatically called when installing via Composer
  Advanced application: init script can now be executed in non-interactive input mode
  Advanced application: fixed console return codes
  Fixed phpdoc
  ...
Update RedisCache.php

added version information
Added version information to redis
elasticsearch AR WIP copied parts from redis implementation
fixed empty result in findByPk list
Fixes #928: client validation should be applied to active attributes only.
basic CRUD for elastic search WIP
added web\Controller::goBack() as shortcut

goBack() will redirect user to his returnUrl
fixes #925
refactored data providers.
doc update.
Set totalCount.
Fixes #927: doc typo.
Simplified the default file map for PhpMessageSource.