Changed myhandler to be an inner class

Also added constructor for rpi_server
Modified multithreading to allow keyboardinterrupt