Embracing Safe Contacts with Contact-aware Planning and Control