HeadSpin.h cleanup

Clean up some unnecessary and unused stuff, mostly from HeadSpin.h.  Switch to STL versions of common routines (e.g. ```min``` and ```max```) where applicable.
This file needs a `#include <algorithm>`