Functionality to accept and display optgroups in dropdowns

I needed the ability to allow for option groups in the dropdowns.  I have added with functionality including edits to the README and a demo (example5)