Use a constant to disable editing

This means we can disable it in production/staging, but keep it turned on in
preview.
Hide some more editing links when disabled