add new configurable CORS helper
implement new error handling design
full implement REST error handling