Convert raw pointers to smartpointers

- Converted most raw pointers in Watchdog.cpp, Autopin.cpp and some other classes to smartpointers, or const references
- Cleaned up the docs
- Moved the PinningHistory object from Watchdog to ControlStrategy

**Caution:** This PR changes many function signatures, as well as declarations.