Added gpio commands, calls into the api class in
states and trouble state calls

need to write transition logic and tests.