Fix friendlist activitystream image

Fix an error with friendlist when a user does not have a friend.
Enable a preview of image ressources in html.
Sort activities in activity stream when subscribed to more then one friend.