#82 Duplicating views breaks image links
#150 Fix backup/restore functionality

Also solves #130, #143, and partially #82.

Please note that for backup/restore to work, all redirect on submit
view IDs need to be re-entered BEFORE the backup!