when the date popup hides, don't screw up the event editor popup behind it
better handle BCE dates
handle BCE dates when saving

this requires converting to postgres date format which is appended by
BC when negative, not prepended with a dash like the ISO standard.
ensure importance ids