Add new features to the build process

Improve the build process by supporting new features : glossaries, index and bibliography

The features option of the configuration configure which option should be used during the build. 

Also add a draftmode command to improve the build process performances. 

Not perfect solution: the bibliography should be generated only if the file is newer than the generated file.