Add z submodule to new lib directory.
Fix up profile, add environment-neutral z sourcing.