Simplified and unified prefs code
Some more improvements, deleted autogen.sh
Added simple self-written autogen.sh