Contact indexing

This adds the indexing needed to grab the contacts and also updates the template to use the real data.
Updated!