Update profiles.lua

- profile_cleanup_key_all()
- profile_cleanup_empty_preferences_all()