added upload progress to index.html
split command return lines onto separate lines
fix long html uploads
handle upload errors more gracefully