use ApplicationController, if defined
Merge pull request #2 from mizoR/use-ApplicationController-if-defined

If defined ApplicationController, use it