Clean up DownloadUtils.java

 * Use HEAD request if checking status code
 * Use getResponseCode() instead of parsing TCP stream directly
Merge pull request #723 from jikuja/fixed_downloadutils

Clean up DownloadUtils.java