Fix some minor bugs and add File Upload functionalities. Thanks to http://aspnetupload.com/Upload-File-POST-HttpWebRequest-WebClient-RFC-1867.aspx