prefer primary email, not first email

was arbitrarily setting email to the first email in the emails array.   now looping through the array and stopping on "primary"
Merge pull request #1 from bkdotcom/patch-1

prefer primary email, not first email