Refactored FormatPhoneNumber to use AtomiaCommon instead.

This closes bug 287.

Change-Id: Ib639a07debe0174bb9f827a2a96cb291e35a99f4