New parameter string parsing implementation

Rewrote our parameter string parsing to match the Rack implementation and added unit tests to verify the implementation
I guess its not necessary, I tend to always include array count checks before accessing items on an array.