improved Mojolicious to be able to detect the current operating mode from the PLACK_ENV environment variable