[app] Move all env setup to bundle-env.

Closes #22.