Move handler setup: cmd/apiserver -> pkg/master

Moved CORS handler setup and authorizer setup.
Will allow for integration test of authorization.
Merge pull request #2005 from erictune/master_integ_test

Move handler setup: cmd/apiserver -> pkg/master