[GPIO] Allow triggers for rising or falling edges.

Tested on a raspberry pi using my GFCI monitor and a simple test script
to ensure that the events were firing, but also that I had the logic
correct for rising/falling.

Hopefully somebody with a PiFace can do some testing as well before v1.0
is finalized.