Related https://github.com/vector-im/element-web/issues/18425
This commit replaces all the `console.log` to `logger.log` via an automated script. Related: vector-im/element-web#18425
This migrates one bucket of files using some amount of Flow typing to mark them as TypeScript instead. The remaining type errors are fixed in subsequent commits.