Automatic index generation

Add optional index generation to make navigation easier. It should reflect the structure of the sources library.

#3

<!---
@huboard:{"order":2.0}
-->