Added configuration DSL

DSL adds ability to set the actions a class will respond to, if a
resource is read only, to set the key used to look up a class, and to
whitelist resource methods that respond to to_json