Restructured the document

I started cleaning the preamble, and improved the struture of the
document:
* there are now 4 parts
* preface and introduction are at the correct location
* appendices are indicated in the ToC
* ...