Masses and Beta-decay Studies of Neutron-rich Nuclei using the X-array and Gammasphere