go test -cover -race is fixed now
Don't stack trace on 301s
Merge pull request #1242 from lavalamp/fix

go test -cover -race is fixed now
Merge pull request #1240 from brendandburns/http

Don't stack trace on 301s
Add option to enable a simple CORS implementation for the api server
Move CORS handler wrapping into cmd/apiserver and switch config flag to a list of allowed origins
Move RecoverPanics to be the top level wrapped handler.  Add new method to be sure a logger has been generated instead of assuming one has.  Move regexp list compilation into a utility and pass regexp list into CORS.
Switch LogOf from panicking when logger is missing to creating logger with the defaults.
Update CORS tests to a table-based test and cover more cases.
Rebased and fixed test cases