Create a tag cloud class

This duplicates the code in the controller.

We are calling the new class from the controller, but we are not yet
using the results. This ensures that the code can run without raising
any exceptions.
Use the tag cloud in the stats controller