Refactoring, GM API instead of cookies

Some refactoring of variable names, setting names. Saving the settings
with the GM API rather than cookies.