Updated for Nette 2.2.
Merge pull request #4 from radekdostal/nette-2-2-compatibility

Updated for Nette 2.2.