Update restapi for emberjs frontend

- cors
- response types
- value fixes
WIP