Update dispatcher actions for several action, sa.
Standardize Calendar auto routing.

Signed-off-by: Norv <a.w.norv@gmail.com>
Update and fix dispatching for groups controller. Standardize its overall design (basic).
Add pre_dispatch() call to menu!

Signed-off-by: Norv <a.w.norv@gmail.com>
Add a couple unit tests for dispatching. (wip, in parallel with a review and fixes of
user controllers)

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor personal messages controller. (Re)add PM search to it. Add pre_dispatch().
Standardize Help controller for action_help.

Signed-off-by: Norv <a.w.norv@gmail.com>
Move toggleNewPM() to subs. Clean more bits of PM action_index()

Signed-off-by: Norv <a.w.norv@gmail.com>
Small cleaning of drafts from PM controller, some checks.
Remove parameters from a few actions.

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor drafts, remove needless link to drafts controller from others.

Signed-off-by: Norv <a.w.norv@gmail.com>
Profile, ProfileAccount controllers, initial pass, made classes.
(also fixes account delete)

Signed-off-by: Norv <a.w.norv@gmail.com>
Split OpenID subs and controller. (return is an action).

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor out of controllers a few moderation related functions.

Signed-off-by: Norv <a.w.norv@gmail.com>
Use parameter in the function. Small documentation tweaks.

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactoring Poll controller/subs, to use existing low-level functions, and make others if necessary.

Signed-off-by: Norv <a.w.norv@gmail.com>
Add database version to db error messages for admins, without the probably wrong
recommendations to upgrade.

Signed-off-by: Norv <a.w.norv@gmail.com>
Merge pull request #559 from norv/unittest

Misc refactoring