Record feature

Add the possibility to record an avatar and then play back that recording.

Next PR will add:
- save/read recording from file.
- Script to manage all that.
All this will be moved to a script in the next PR.