Added advanced composer.json.
Advanced application template
Merge branch 'master'

Conflicts:
	apps/advanced/composer.json
Do explicit check of local config file.
typo fix
Added install tool, moved all local configs and entry points to environments
Adjusted paths, added install.bat
Ignores for frontend/backstage index.php
Moved commented sections into -local configs, added prod environment
specified proper namespaces
fixed typo
Added #!/usr/bin/env php
MySQL migration for User model
User and LoginForm are now common models, User is AR and Identity
Added db component. Added configuration section to readme.
fixed framework path of req checker + notice on wrong path

git ignore composer.lock
Adjusted vendor dirs of example applications

- update composer json to chosse right path
- set vendorPath in application config if not default
Do not ignore composer.lock

https://github.com/yiisoft/yii2/commit/a6c251d2ab6d222b5318cc7fa21eb3791a296c62#commitcomment-3291785
fixed AutoTimestamp example in advanced app

fixes #429
Added missing use statement.