Allow building Debian package with CMake

- Don't include .la files with Debian packages

- Allow option to build with cmake for Debian (LCB_DEB_CMAKE, in the
  environment)

- Add generated defs.mk for CMake
  This helps include "makefiles" get the same variables from CMake

- Use GNUInstallDirs for installation prefixes. This also icludes an
  option for customization to disable the /usr/lib/x86-64- install
  directory

- Add dummy test target if no tests are enabled. Debian wants tests, but
  we don't really have a chance to run them, since we rely on the Mock

- Output VERSION file appropriately. Also parse the version in a form
  suitable for a source distribution.

- cmake/configure fixes:
    - Allow configurable build directory
    - Include additional 'vestigial' Makefiles, such as docs, deb/rpm packages
    - Allow to run as `./configure`

- Clean up deb/package.mk. Allow to run under cmake using more dynamic
  directory configurations.

Change-Id: I910ab713b3b8106331aa6db83f268d5297a74b7a
Reviewed-on: http://review.couchbase.org/42768
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Tested-by: Mark Nunberg <mnunberg@haskalah.org>