Properly pthread_join miner threads on shutdown.
Create a logwin_update function which mandatorily updates the logwin and use it when input is expected to prevent display refresh delays.
Rework initialise sequence for avalon.
Merge branch 'master' into avalon-dev