Add clang-format configuration file.
Correct htonll macro detection in CMake.

CMake's check_function_exists() only checks for a symbol being defined in a
library, and does not cover the instance where a function may be defined as a
macro a header. Use check_symbol_exists() to check arpa/inet.h header for symbol
existance of htonll.

This fixes #200
Ignore build directories.
Fix: remove superfulous assignment in amqp_socket.c

sockfd is assigned, then assigned again unconditionally without being read
from. There's no point in this statement, so lets get rid of it.
FIX: don't range-check channel_ids.

Even if a channel_max is specified, channel_ids can be any number, so don't
range-check channel_ids received. At present this gets rabbitmq-c back into
compliance with the way the RabbitMQ broker works.

See issue #187, #195

To correctly enforce channel_max from the client side, rabbitmq-c would need to
track open channels, which is a bit more involved to do correctly.
Preparation for v0.5.1 release.
Bumping version for development.
autoconf: look for htonll in arpa/inet.h

htonll maybe defined as a macro, look for it in the arpa/inet.h. CMake build
system already does the right thing.

Fixes #206
Add usable YCM configuration file.
ssl: Fix a bug that host name verification failure isn't reported

There is an unexpected local variable shadowing in
amqp_ssl_socket_open(). So the following code is meaningless
unexpectedly.

    status = AMQP_STATUS_SSL_HOSTNAME_VERIFY_FAILED
Suppress OpenSSL deprecation warnings on OSX
Enable compiler warnings with Clang
Add platform, version, copyright client properties

Add 'platform' 'version', 'copyright' client-properties to start-ok method
during connection handshake.

Adapted from:
https://github.com/synety-jdebp/rabbitmq-c/commit/e3c76e1887ff50378f6146167daa024dbd7d4eeb
by: Jonathan de Boyne Pollard <jonathan.de.boyne.pollard@synety.com>
Update copyright on files changed in 2014.
Print message body in amqp[s]_listen[q] examples.

This fixes #199.
CMake: check for PKG_CONFIG_FOUND in FindPOPT.cmake
Stop CMake warning about @rpath on Mac OS X.
Revert "Stop CMake warning about @rpath on Mac OS X."

This reverts commit c9f00dfb9f5ce306398f18cafa143988a4f61515. Because it breaks
under CMake versions that don't know what CMP0042 is.
amqp-consume: support consuming N messages at a time

If you have a single consumer C₁ and 10 messages are published, all 10
will be streamed to that one customer. Assume each message takes a few
minutes to be handled.

If a second consumer C₂ comes up before C₁ is able to process its first
message, it will stay idle until new messages are published, while C₁
will still have to process the other 9 messages after finishing with the
first one.

If both consumers were started with `--messages 1`, C₁ would only fetch
a single message, and start handling it; C₂ would start and already
receive the second message .
Merge remote-tracking branch 'upstream/master' into rabbitmq-c-websocket-support