Fix timing bug in Mongodb replicaset configuration

Since start_server() and restart_server() do not actually verify whether the
port is open and receiving connections (even though mongo starts up,
pre-alloc/other setup takes a few minutes), the replicaset recipe was failing to
establish a connection with the db.  The change to the initd file waits for the
port to be open before proceeding, ensuring that the replicaset recipe will
work.

Fixes #17
include?'s equality test is not reliable for Chef::Node objects
import all of treasure-data's chef-mongodb-mms-agent cookbook
use attributes from node['mongodb']
specify cookbook name in definition
Add connection failure recovery for the MongoDB

Conflicts:
	libraries/mongodb.rb
Fix tabs
Make metadata.rb more compliant - only string or array types are supported; default cannot be a hash.
Set mongodb/sharded_collections default to [].
Merge pull request #123 from flaccid/master

Make metadata.rb more compliant
Merge pull request #85 from markjreed/master

Correct node-inclusion test
Merge pull request #103 from whitekid/master

specify cookbook name in definition template
Follow up to #103, set source of template files can be another cookbook
Follow up to #26, forgot to assign configfile from attribute
Merge pull request #121 from Adallom/replicaset_support_connection_recovery

Add connection recovery support (also fixes timing bug after restart)
Add support for smallfiles flag

Conflicts:
	definitions/mongodb.rb
	templates/default/mongodb.conf.erb
fix tabs
updated apt dependency to allow more recent versions
Merge branch 'add_smallfiles_support' of git://github.com/Adallom/chef-mongodb into Adallom-add_smallfiles_support
updated the berks lock to reflect the new apt cookbook constraints