Fix userid in setting to cache

Store token for userid and loginhint.
Fix pwd expire field
Fix activity test to run on device without android keystore
 Date object does not have timezone. It is the number of milliseconds since the Unix epoch, which is at midnight January 1st 1970, UTC. DateFormat or similar class prints in timezone for display.