Restructuring things and adding detection code

First step to having auto-detection working!
Adding initial SNES controller code