Use res_class instead of res_name for identifying app

It's usually more informative.  Unfortunately, they usually differ in
case, so users will have to update their exceptions.

Fixes https://sourceforge.net/apps/trac/easystroke/ticket/117.