Cross-origin resource sharing

Add feature to persist cors hosts in config, edit in general settings tab and append to API headers if any is set.
This is required only to save config via general settings view. When I'll change this PR to remove general settings editing then I'll back this code to origin.