Added support to configure a limit on how many selections can be made

I added support to limit the number of selections that can be made in a MultiSelect. Not sure if this is useful to anyone else, but here goes.