Rethinking app env

See here for details.