Converts javascript object into FormData object with corresponding attr name values. Supports Object, Array, Boolean, String, File and FileList