moved dev requirements to require-dev in app composer.json

fixes #1736
added classes to grid, list and detail view

to allow specific styling
also fixed an issue with gridview sort indicator css.

fixes #1000
Added --prefer-dist to all docs

1. It results in much smaller download and takes less disk space (25MB instead of 180MB for yii-basic + dependencies).
2. It requires less utilities to be installed (no VCS binaries required).
3. It takes less time to install dependencies.
Advanced app template: moved database connection DSN, login and password to -local config not to expose it to VCS
Adjusted advanced application template docs to reflect DB config movement
Merge pull request #1 from yiisoft/master

update from orig