fixed memory leaks, add connection to server
move include 'request.h' 'response.h'