Added ajax loader.

Using ajax loader for tagcloud. The image will be removed after tagcloud
request completes and the tagcloud is shown. This might be useful for
some really long tagcloud that will take some time to build (although it
should be mostly useful for long ajax requests).
Changed the logic of ajax loader.

Will only be used for waiting until ajax has finished.