Feature: Automatic index generation.

When no index is found, it generates it automatically by
creating a directory listing of it.
Refactor: minor refactor

dirList extracted from generateMenu and generateIndex
Added slash after dirs in generated indexes
Feature: Added more customization options via css
Feature: Support for javascript libs