sub menus didn't get checked for being active.

Based off the method in ```Menu.php``` I've updated ```Nav``` so it will check if sub menus are active or not.
Improved check for active child items

Updated to avoid full tree traversal.
Also noticed ```activateItems``` didn't do anything so that's been fixed.
Update CHANGELOG.md
Added asElapsedTime function
Typo in asElapsedTime description
Call Yii::t everytime instead of passing a template variable
Typo
asElapsedTime can now take DateInterval as parameter
asElapsedTime style improvements
asElapsedTime can now take a DateInterval string as a parameter
Added support for inverted intervals (future time) and unit tests
Removed debug code, changed doc
Modified example in DataReader usage comment to reference a DB Command function which accepts a SQL string argument.
PSR-2 compliance
Update controller.md
Merge pull request #2791 from qiansen1386/patch-4

typo fix in contoller.md
Added note about configuring nginx for HTTPS
typo fix
updated german translations
Merge branch 'master' of https://github.com/yiisoft/yii2

Conflicts:
	framework/base/Formatter.php
	tests/unit/framework/base/FormatterTest.php