Add option to enable a simple CORS implementation for the api server

Related to https://github.com/GoogleCloudPlatform/kubernetes/issues/1128
@lavalamp are you thinking a generic function in the util package to compile a list of regexp strings into a list of regexps ?