Added ability to add contact to phone.

ContactFragment is the dirty version with the manual insert in comments for reference. Will check in clean version after this one.
Also tidied up trim() being used everywhere by doing it on the data objects themselves.