Add SharedPreferences to save name and netid, regards to #18

Fixes #18.