Added code to register phones for pushes.