Improved rest config to handle POST from Maniascript as JSON
Improved API code structure
Improved frontend