Store multiple rule files

Multiple rule files can now be added using the file dialog box. These
are serialised and saved with the preferences, base64 encoded.