Limit parameter support

I use this addon a lot, to display categories in footers, next to an article, or in navigation. I often find myself needing to limit the amount of categories returned and added the limit parameter to suit my needs. I figured I'd share this modification so others might benefit.