Change prefs to local variable

Use SharedPreferences instances as local variables where they are needed
instead of having a global variable. This is better since the
instantiation in a thread of the global variable could lead to race
conditions.
Check for superuser in static method
Convert help screen to html