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.
fix rubocop issues.
newer rubocop found new things
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
Merge pull request #13 from cloudfoundry-incubator/fixRubocop

fix rubocop issues.
cf login requires Accept to be app/json
Merge pull request #14 from cloudfoundry-incubator/302issue

cf login requires Accept to be app/json
trying to hook-in with travis
Merge pull request #15 from cloudfoundry-incubator/travis

trying to hook-in with travis
wrong name
Merge pull request #16 from cloudfoundry-incubator/travis2

wrong name
remove