created core dir for central source modules

moved configuration and logging in there

I should probably sleep instead of coding at some point, changing my
mind faster than a squirrel on meth.
checkPeaceful cleanup

* Change boilerplate uses of checkPeaceful to a no-arg call
* If called with empty string, send no msg in the calm spell case
* Add a checkPeacefulAction call which provides a customized substring
  of the whole message, to reduce typos
fix build breakers
more sstring cleanup

* remove pointless uses of .c_str() with find() and replace()
* move (overlarge) inlineXXX funcs to .cc from .h
* move one-liner operator overloads to .h
* clean up some function logic