Added events detection

New functions and constants
Add pull_up_down on setup
Merge event detect logic and pull up/down resistor change.  Update GPIO tests and simplify constant mapping with dicts.
Bump up version to 0.7.  No breaking changes to existing interfaces, merely a version bump to differentiate library versions with event detection support from those without.