[WIP] Fix live-reload.

The recent refactoring completely ignores the live-reload option.  This brings it back.