Added support for saving and loading button mappings.