Storing state in @state for Layout & Connection.
Moved #state method from individual classes to Config class. Fixed bug in Config where Ruby 2.0 respond_to? resulted in false when method is protected or private. All tests passing now for 1.8.7, 1.9.2, 1.9.3, 2.0.0.