fixed local xml data cache usage problem
replaced manual loop for copying byte array with System.arraycopy - zekikez
resize buffer size if packet length is greater
Merge pull request #5 from xolus/master

replaced manual loop for copying byte array with System.arraycopy
Reorganized packet handeling code out of main class.