Added afterActivate method for easy app-specific customization of such behavior
Merge pull request #2 from motin/after-activate

Add afterActivate method