Fix erb templates with proper hash syntax and comments
Update file_upload.rb to use json gem and parse json metadata