Add encoding markers
Fix deadlocks caused by holding lock while performing work
Reload handler scripts when they change on the filesystem