Add a response class

All conversion codes are moved to it.