Update the format of the JSON archive file in order to minimise the size of the file.
Try to use as much as possible the same code path for both migration and staging.
Add the get_endpoints method for constructing the source and the destination url's
depending on the type of transfer to be done.