Use a single SharedPreferences instance (closes #152)

Signed-off-by: Daniele Ricci <daniele.athome@gmail.com>