Fixed #3163 Trigger a warning (instead of fatal) for invalidly nested <td> tags
Code formatting cleanup; tightened up interface access
Help keep active gateway setting cleaner