Play the sound before refreshing the page
BUG: In HSBXL, the page takes 2,5s to build
Big code cleanup
- Added a separate monitor mode
- Main block cleanup: moved the door management code to a separate procedure
- Started to remove some terminal dependencies (make it init friendly)