Issue refs #1598: implement template deletion, move file upload to separate directive with common code, add cancel feature, list of uploaded files, progress ui