Port brain and twitter to new HookContext system.