Rewrite to use gpsd, removed lots of unused code.