Foundations for a Social Networking Application