CRM-13966 - Refactor autocomplete custom field
CRM-13966 - Cleanup profile dialog