Rename all instances of 'identifier' and 'id' to 'uid'.

`identifier` and `id` are used inconstantly. `id` is a builtin, so `uid` make sense.

TODO:

- [x] regex replace all occurrences
- [ ] manually review all changes