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

Related to https://github.com/GoogleCloudPlatform/kubernetes/issues/1128
@smarterclayton what was the reason you wanted it pulled out into a separate file?