Refactor warning queries out of ProfileAccount controller.
(moderation subs)

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor isAnotherAdmin() out of ProfileAccount controller.

Signed-off-by: Norv <a.w.norv@gmail.com>
Small leftover.

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor out topicsStartedBy().

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor poll low-level functions out of action_removepoll() from Poll controller.

Signed-off-by: Norv <a.w.norv@gmail.com>
Add the poll subs. And use it! :)

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor out resetVotes()

Signed-off-by: Norv <a.w.norv@gmail.com>
Introduce the getPollInfo() function. (parallel with getTopicInfo()).

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

Refactor queries