Fix for REF 101

A/V code is based on pattern matching now. Also the stop/start buttons
no longer try to detect state and are just always on/off.
Recording button enhanced

Removed stop button. Recording button now is a toggle button, depressed
= recording, undepressed = not recording. Various fixes to recording
logic also. Some minor refactoring too.