Add CORS header for GET,HEAD,OPTIONS requests
Add more schema info to entity in graph view

Refactored a lot