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

Related to https://github.com/GoogleCloudPlatform/kubernetes/issues/1128
To keep apiserver.go smaller - these are one off handlers that can be used independently.