Add masterNode to settings
Introduce base64 encoding for PGM
Add restoreQuick as temporary restore function.