Remove unused (and broken) xml handler for mycontacts, and clean up some functions a little