Port TWI to new style hw naming API.
Fix a few cases where debug output was produced without DEBUG_TWI set.