Fix overflow, fix validation, gitignore, pickup version from configure.ac

While trying to find a xorg input driver that can recognize gestures, I encountered your project. One of the fixes ("Fix devname overflow") was detected while working with the Logitech Rechargable Wireless Touchpad T650 (#51). The others are trivial errors found while checking the code.