moved request parameter munging code+data into a new file, in preperation for cleaning things up