[ticket/10270] Added JavaScript popups and basic AJAX functionality to PHP.

This commit adds the phpbb object (JavaScript), and alert and confirm box
methods. It also adds the first basic AJAX functionality, to deleting posts
in viewtopic.

PHPBB3-10270
[ticket/10271] Added phpbb.confirm_box (JavaScript).

As well as adding the method, this commit also changes the previous commit
so that deleting a post from viewtopic uses this method, too. This commit
has also made some improvements to phpbb.alert and phpbb.confirm.

PHPBB3-10271
[ticket/10272] AJAXified most links.

This commit makes some significant changes to the phpbb.confirm_box function
(namely, removing some duplicate code), and also manually adds most link
to the phpBB AJAX functions.

PHPBB3-10272
[feature/ajax] Cleaned up AJAX-related JavaScript.

Mostly just added comments, but has cleaned up some actual code too.

PHPBB3-10270
[ticket/10273] AJAXified approve / disapprove posts (in viewtopic).

This commit AJAXifies the moderator approval functionality, and adds it to
viewtopic instead of the MCP. This commit has involved some language changes,
which may affect fallbacks.

PHPBB3-10273
[ticket/10270] Cleaned up code and made popups fade.

This commit cleans up some code - mostly, replacing all instances of __self
with "that", and also replacing the parse_hidden function with jQuerys built
in .serialize. It also adds animations to the popups.

PHPBB3-10270
[ticket/10273] Added phpbb.ajaxify_form and converted accept / deny to it.

Also made a few minor improvements to other JavaScript.

PHPBB3-10273
[feature/ajax] Reduced duplicate code by merging all AJAX function into one.

This commit merges phpbb.confirm_box, phpbb.ajaxify and phpbb.ajaxify_form into
one function which automatically detects what is happening and calls the
correct code accordingly. This has removed a lot of duplicate code and
generally made the code cleaner.

PHPBB3-10270
[ticket/10270] Changed function names of jQuery modifications.

The code was modifying the jQuery code before, now the functions have been
renamed to unused function names.

PHPBB3-10270
[ticket/10272] Made some jQuery selectors more specific to avoid conflicts.

Before, a link to any URL with, say, "mode=bump" in the title would have been
prevented from acting normally.

PHPBB3-10272
[ticket/10271] Added ability for exceptions to phpbb.ajaxify.

Also made it easy for additional options to be added in the future.

PHPBB3-10271
[ticket/10270] Removed the js anim functions.

This commit removes the hide_anim, show_anim and remove_anim functions and
replaces them with built in jQuery function that do exactly the same thing.

PHPBB3-10270
[feature/ajax] Replaced jQuery selectors with data attributes.

Due to problems that could have been caused by selecting the element using
jQuery selectors, they have been replaced by HTML5 data attributes.

PHPBB3-10270
[ticket/10271] AJAXified Quick-mod tools.

Also made some improvements to the exceptions.

PHPBB3-10271
[ticket/10291] AJAXified quick reply form.

Also changed the show quick reply button to a button, not a submit - it was
affecting the behaviour of phpbb.ajaxify.

PHPBB3-10291
[ticket/10270] Makes page fade to dark on popup, and added $.querystring.

PHPBB3-10270
[feature/ajax] Added code to avoid conflicts with other libraries using $

PHPBB3-10270
[ticket/10270] Fixed a bug where fadedark wouldn't go.

If the confirm box was submitted as yes, then the fadedark would stay until it
was clicked. This commit fixes that.

PHPBB3-10270
[feature/ajax] Fixed a small bug in the JavaScript.

The bug meant that code outside of the function that ran on document ready would
not be able to access the phpbb object.

PHPBB3-10270
[ticket/10281] AJAXified reordering forums in the ACP.

PHPBB3-10281