Rework data output and move format parameter to the accepts http header.