rest-core: Allow application/* and application/octet-stream as accept header for files
Rest-gen: Fix the concatenation of accept headers (should be commas not semicolons), and use application/octet-stream as the accept header for file outputs