vcsh: Implement pre-/post-init hooks