Updated code for Snap framework

Installer script should now install all the required packages, configuration file handling fixed.