First iteration of implementing rack response and writing it to the socket