Removed some of the fixed size buffers, used dynamic buffers instead.
Improved html header handling.
Limited files to a max of 100Mb.