Refactor digitCode to use /dev/urandom instead of Math.random.
r=Tarek
Rename credentials to serverInfo to avoid confusion with login/password credentials.
r=Tarek