Code re-ordering and optimization. Optimize email returned in the emails field of profile.

The first email returned in emails fielf of profile will be chosen based on the following priority:
1. Verified Primary
2. Verified
3. Unverified Primary
4. Unverified