Changed code to rewrite parameter names using built-in string splicing and replacement functions to get around the limitations on multipart/form-data parameters in BurpSuite.
Added comments and cleaned up a few things here and there.