Added params() method to parse GET parameters.