Added orientation for buttons

Added a enum for the orientation of the IO board, a method to set the
orientation (defaults to east), and an orient method that rotates the
output state correctly