Use wpdb->prepare() instead of escape()

Also clean up some whitespace in AdminAjax
Better HTML escaping in TeamDataAdmin

Add a lot of HTML escaping to TeamDataAdmin as it was lacking before.
Add some options to match widgets

Also clean up the output code and fix one or two small bugs
Add extra class when a logo is missing

Introduce new match_widget_logo_empty class to signify when no logo is
present