API dialog improvements

The API dialog let you get the curl command to call the API from the App. We've made 2 improvements to it:
- Body request now properly supports special characters like apostrophes.
- Displays curl for other requests (exports, technographics, etc.).

