Improvements to the replication system to support file replication. This includes a
new API call that handles file transfer.
Minor corrections to hn_ts_upload_measurement_file related functions.