Moving appHandler to a constructor arg.
Merge pull request #140 from jsdevel/moving-to-app-handler-in-the-constructor

Moving appHandler to a constructor arg.