fix request header to default to json and allow custom Accept headers
added datatype option to contents calls