Extract endpoint accepts JSON.

Use fork of flask-api for CORS.
Use flask-cors.
Fix tests.