Fix IP to service assignment [3/3]

This set of pull requests contains the following:

1. Adds the ability to specify an IP address that a service should bind to.
   This is done by eliminating the calls to address_for in the messaging
   and database upstream cookbooks and replacing them with endpoints.
   We will need to convert calls to address_for to endpoints as we go
   through the upstream cookbooks.
2. Modifications to the database and messaging barclamp custom recipes
   so that the IP address assigned by crowbar networking is pulled out
   and given to the service to use.


 .../openstack-common/attributes/database.rb        |   41 +++++++-------
 .../openstack-common/attributes/messaging.rb       |   57 +++++++++++---------
 .../openstack-common/libraries/endpoints.rb        |   14 +++++
 .../cookbooks/openstack-common/libraries/search.rb |    4 +-
 chef/cookbooks/openstack-common/libraries/uri.rb   |    2 +-
 .../recipes/set_endpoints_by_interface.rb          |    2 +-
 .../openstack-common/spec/endpoints_spec.rb        |   19 +++++++
 .../cookbooks/openstack-common/spec/search_spec.rb |   14 ++---
 8 files changed, 99 insertions(+), 54 deletions(-)

Crowbar-Pull-ID: b47bd52b0a9f7a155862bb2bb596e3fbd880aa1e

Crowbar-Release: development