adjusted guide and small code adjustements
Merge branch 'master' into refactor-errorhandler

* master:
  Fixes #2912: Relative view files will be looked for under the directory containing the view currently being rendered
  app end improvement.
  improvement of Application::end() handling.
  typo fix.
  Fixes #2910: Added `Application::end()`

Conflicts:
	framework/base/Application.php
Merge pull request #2916 from yiisoft/refactor-errorhandler

Refactor errorhandler