Use shared_ptr/weak_ptr for GpsData and MagicBox

Use shared_ptr for GpsData and MagicBox in DrawingLifeApp and weak_ptr
in Walk.