Fix medium-trust issue

Some shared hosting environments (godaddy) do not allow the use of
NetworkCredentials.getPassword.  Add another constructor & factory
method that passes in credentials as string directly.