Subclasses support

This commit will add a subclasses support so instantiate_record will build an instance of a known subclass if 'type' option was provided among the attributes in the response from the service.