allowing non-numeric facility ids
fixes issue with formhub photo id strings being built incorrectly
handles csv and json equally (JSON structure wraps array in an object.)
doesn't override ID if it is passed.
Merge branch 'master' into gh-pages