Publishes accelerometer coords to server every 20secs. Client now writes data to a csv file. Refactored everything into the service.