Separating checkModules() and checkPermissions() in AbstractAction

Actually nothing was changed, just separating the code into own methods to make them overridable, just like in AbstractPage.

See discussion result of #1115