Respond to

Currently a client resource will return false for .respond_to?(attribute) even though we dynamically add attribute methods with method_missing. This pull request adds a respond_to? method that correctly responds for dynamic attribute methods.

Borrowed from http://technicalpickles.com/posts/using-method_missing-and-respond_to-to-create-dynamic-methods/.