Added env as ruby, redirect as 301 when hitting awv, set endpoint if passed as commandline parameter