[ticket/12982] Refactoring: made most JS nice.

PHPBB3-12982
[ticket/12982] Refactoring: made JS in adm nice

PHPBB3-12982
[ticket/12982] Refactoring: Cleaned up phpbb.search

PHPBB3-12982
[ticket/12982] Refactoring: Cleaned up forum_fn.js

PHPBB3-12982
[ticket/12982] Refactoring: Cleaned up crazy insert users stuff

PHPBB3-12982
[ticket/12982] Refactoring: Killed undescriptive variables

PHPBB3-12982
Merge pull request #2879 from callumacrae/ticket/12982

[ticket/12982] JS refactoring