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
Create passthroughLogger when LogOf is called and request has no logger
Merge pull request #1133 from jwforres/enable_cors

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