wip: test mode.
fancy toggle buttons for live and test, other fixes.