added gps logging code and made gpstime service persistent