Backups restore

A Go version of the old restore system has been implemented.
The PR is rather large because in mid way we had to change
the development and adapt restore to the new backups method.
There are a few fixes to be committed yet but this version is
almost final so a review would be helpful.