Add code guidelines.

I'm well aware the code doesn't exactly match this yet.
Remove unused destructor, some use of auto.
Banish many uses of auto.