You can do this with GPSToday. It runs in the background. You can set a time interval for it to update your location. Create a private group for your friends so you will be able to track each other. Only drawback is it currently only works with WM.
http://www.geoterrestrial.com/