REfactoring mygestures.c
Fixed 1 instance per device.
Fixed small bug
implementing shm per device thread.
Fixes in shm allocation
More refactoring
Mostly cosmetic changes.
Refactoring forking