Make stroke.c standards-compliant

Alright, clang you win. This sacrifices readability for portability,
and if you can't use nested functions, you end up with functions
with 13 parameters...
Port to gtk3
Do tooltips right
Add an app menu
update .gitignore
Improve autostart
Reenable proximity for supported devices

I'm not aware of any drivers that support this as of now
make activate() function static
Refactor event handling code
Remove some dead code
Improve X error messages
WIP: touch
Don't do a touch grab on the SD

This means we can't accept non-touch events from touch devices.  Oh,
well.
Does this help with lags?
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.
TODO: Merge with previous commit