Modified encoder to use the new gpio functions

Requires implementation in RASDemo
Completed implementation of the encoders

Added reset function and added testable example code to RASDemo.
Actual Testing is required