Add REST API handlers
Add converter-related code
Adapt JS to new REST API