Add Cors support
Change API a bit
Set http status codes