Added a flask server for controlling player.