Process templates and dump changes to target if really changed. Also onetime and init modes.
Updated templates.