Various improvements with the way events are unpublished after changes

- UI improvements, events appear unpublished after ajax queries that alter attributes
- Events get unpublished by the attribute replace tool and template population as they should
Same as the previous commit, only for the freetext import tool