joystick: added search method for finding joystick

Also made other changes to connect/disconnect etc..