Refine the cc client relevant code

As more and more parts in Admin-UI will use CC rest api, need to extract
the CC client relevant code into an independent lib as base code, this
patch includes the refine of utils and CC relevant code to achieve this goal.
fixed timestamp mismatch errors found in admin_spec.rb
Refine CC client relevant code

Have refined the code according to Russell's comments
Merge pull request #9 from jackfengibm/fix_unit_test_cases

fixed errors in admin_spec.rb
Merge pull request #10 from xingzhou/add-cc-rest-client

Refine the cc client relevant code
Merge branch 'master' of github.com:cloudfoundry-incubator/admin-ui into fixRubocop

Conflicts:
	spec/support/server_helper.rb
	spec/unit/log_files_spec.rb