Updating catalogue registration scritps.

- Repeated registration updates the existing metadata records (remove+new-insert).
- Catalogue response interpretation and non-zero return code for failures.
- Manifest passed view std.in is captured to a temporary file.
- Fixed temporary file naming and removal.
Minor edit.
Fixing the naming and removal of the temporary files.