Rewrote some of the PS3Remote code for clearer flow of state, and to prevent an issue with multiple buttons being pressed/held at the same time.