Switched Favourites to Socket.io / DB call

Switched the method with which favourite gifs were being retrieved and
displayed. Works more smoothly now.