Better enable/disable of run buttons based on current test and ui state

This fixes issue #18.

A separate PR will be investigated for the <enter> key stuff.