Revert "Get rid of swap file"

This reverts commit b9bff1a981e2dbee0e0a2d6bca3cc30be41b4f61.
Revert "Revert "Get rid of swap file""

This reverts commit b7c508b1c84d84250964f40e094e9d6d1ae01135.
Revert "Revert "Revert "Get rid of swap file"""

ugh what have I done
This reverts commit 5e61a78126e1bf12c9c5c2a212664ef7448cfb62.
Revert "Cleaned cruft out of doBrowse() in display.php"

This cruft made the back button work
This reverts commit 49042e467c4ef610d73bf1990011bc0611397179.
Made the viewing in edit work