Web UI for uplaoding entity CSVs.

- Add malformed? to entities.
- Tidy up entities API and fix alerts.