'Object initialization.
:param controller: object that implement methods created by routes lib
:param deserializer: object that can serialize the output of a
controller into a webob response
:param serializer: object that can deserialize a webob request
into necessary pieces
:param fault_body_function: a function that will build the response
body for HTTP errors raised by operations
on this resource object'

def __init__(self, controller, fault_body_function, deserializer=None, serializer=None):

    self.controller = controller
    self.deserializer = (deserializer or RequestDeserializer())
    self.serializer = (serializer or ResponseSerializer())
    self._fault_body_function = fault_body_function
