Ab Initio Theories Of Atomic Subsystems In Interaction With Extended Environments