added basic authentication: if rubygems repository comes back with 401 U...

...nauthorized then a username/password

prompt will get the credentials and stores them for later use in the ~/.gem/credentials file.

first step for #728