Added classes for connection pooling
Added .end method to close all connections
Replaced .release method with replacing the .end method from the Pool
Removed EventEmitter inheritance
Cleaned up end code a bit
Added hook for destroying pool connections. Creation also checks if the pool is closed before responding with a new connection.
Added missing self reference
Fixed error in closing an empty pool
Callback to Pool#end is optional
Added handling for connection disconnects.
Changes Pool to handle 'error' events and dispose connection