Category directive converted to native controller

The category directive used by the content view page on the backend has
been refactored in order to optimize certain parts of the code.

Additionally it has been changed the way it loads the products from the
client side, previously it used to make a request everytime a page was
clicked, not it loads the whole array of products and then it filters
them