Added support for per-host, per-user, before and after configs