Added CSS ID namespaces.

refs #6134

Cleaned up CSS ID creation logic and added ability to provide CSS
ID namespaces to avoid duplicate CSS IDs when a directory entry is
displayed more than once in an entry list.