Re-factored Receive and send functions

Took send out of the receive function. Receive function now spawns
another thread once a full length has been received. Then processes the
response and sends it back to the client. Have to check to make sure
that am getting size parsed properly.