New REST API, supporting OPTIONS for automatic configuration of client
Cleaner REST API, now using identifiers and URLs for auto-config, which prevents bugs and potential exploits in referer checks.