Template dropdown.html now handles multi-level dropdowns.

Shamelessly lifted with minor modifications from: http://bootply.com/74918