Refactor cbc

- Make the 'cbc' tool more C++ like
- Use api3 when possible
- Use common option handling
- Add 'cliopts' argument handling rather than 'commandlineparser'
  ('commandlineparser' will go away once all the other tools have been
  converted)
- Add new lcb3 options like DSN and SSL

Change-Id: Ia1815449a538ad193bcb60da269237e34f6af112
Reviewed-on: http://review.couchbase.org/38127
Reviewed-by: Brett Lawson <brett19@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>