Remove unused libs and debug logging
Fix typo in variable name
Save settings on separate file. Fix HTML formatted responses.