Fix undefined variable errors for contact

Disallow the addition of an address unless Address Line 1, City,
Country, or Postal Code is defined.
Add error handling for CC API responses
Fix name parser to use proper PHP tags
Convert remaining tabs to 2 spaces