Move cli global state into a structure and pass it around
Remove unused audio code