Fixing hooks for create-or-update; Adding diff and runhook commands