Loose log level for injection failure
Add more DirWatcher flags
Better locking
Fixed special case with script tag being truncated
Prevent potential index out of bounds exceptions