Creating a user configurable limit for results of a changeset query

The following code allows changeset queries to have a limit on them. By default the limit stays at 100, but it now allows a "limit" parameter, similar to other limit parameters.