ENH: More cluster stats options

This adds support for the "hat" variance regularization technique and for threshold-free cluster enhancement. Still needs tests and validation. Also cleans up / speeds up some clustering code.

Should be ready for review and/or merge.