Add Up/Down to OnChange DI pin watching

When watching pins, f.ex. a motion detector, it may be useful to only send rising or falling edges.
Add Up/Down to OnChange DI pin watching
typo corrected
Merge pull request #89 from Inhumierer/patch-1

Add Up/Down edge to OnChange DI pin watching