use Sinatra::Base#content_type to set API response format since respond_with seems to prefer this way.
Merge pull request #255 from axsh/fix-api-response-content-type

Enhancement for setting sinatra response type