Switches and sockets for flush mounting