Add core header + classes Request/Response

+ reformat

+ Fix const pointer error