Fixes #7 - PreCommand event implementation and related changes for the auth plugin to redact output. Also a small cleanup.