Contact indexing

This adds the indexing needed to grab the contacts and also updates the template to use the real data.
Oh right. WP hasn't been updated to use it though.