Simple extensible response formatter which detects appropriate response format and serializes data accordingly.