Added Console redirect and support for Clerk action windows. TODO: bug which opens many windows.