Use correct connection type in shared deck download (http/https).

The download link may be either HTTP or HTTPS, and openConnection()
returns the respective connection type. We need to typecast to the
correct type or it will break.
Merge pull request #47 from hssm/shared-deck-import

Use correct connection type in shared deck download (http/https).