Extract error initialization to JsonError module
Rename Command::emitFinished to finish
Update NEWS for HEAD