Beta Decay Far from Stability and Double Beta Decay, and Consequences for Astrophysics