Distributed locking for allocate ip [1/1]

This pull adds distributed locking for ip allocation


 crowbar_framework/BDD/networks.erl                 |   14 ++
 .../app/models/allocated_ip_address.rb             |   24 +++
 crowbar_framework/app/models/interface.rb          |    4 +-
 crowbar_framework/app/models/ip_address.rb         |    4 +-
 crowbar_framework/app/models/ip_range.rb           |    7 +-
 crowbar_framework/app/models/network.rb            |  165 ++++++++++++++++++-
 crowbar_framework/app/models/network_service.rb    |  150 ++---------------
 .../migrate/20120730175255_create_ip_addresses.rb  |    4 +-
 ...20130115220245_create_allocated_ip_addresses.rb |   27 ++++
 crowbar_framework/test/network_test_helper.rb      |   10 +-
 .../test/unit/allocated_ip_address_model.rb        |  142 ++++++++++++++++
 .../test/unit/interface_model_test.rb              |   14 +-
 crowbar_framework/test/unit/ip_range_model_test.rb |   10 +-
 crowbar_framework/test/unit/network_model_test.rb  |  170 +++++++++++++++++++-
 .../test/unit/network_service_test.rb              |  102 +-----------
 15 files changed, 581 insertions(+), 266 deletions(-)

Crowbar-Pull-ID: 2941eb4a3ef165dddf0039cf260f5b0acdce2d9d

Crowbar-Release: development