Fixed failed uploading of rides when no internet connections.

Added code to save rides to disk, and a service to upload rides to the
portal.