Message parsing -> methods, added partial requests

Message parsing has been moved to a new method to improve readability.
I've made another attempt at requesting the entire file, but currently
the message is not sending properly. I only receive 'keep-alive'
messages after I send a request.