loop upload working.  refactoring loop_collection controller into transaction so as to create author_id
finalizing api. formatting json output
finalized json api