Populate browser settings struct (Not fully tested, but changing local storage appears to function). Add some better memory cleanup functions.