introduce P2P_List_Renderer class

It keeps all the code related to rendering lists of items in one place.