Anomaly modular

1/ turn `anomaly.py` into a class for better reuse, move related logic from `clamodel.py` here
2/ nice speedup for python (use `numpy.sum()`)
3/ new features/"implementation" to anomaly computation - parametrized, default off, so no change from current 
3.1/ new `cumulative anomaly` (sliding window)
3.2/ @subutai Please have a look if you like this approach, it's prepared for integration with your `likelihood` anomaly code
4/ added tests
I thought it would be simpler, esp coding in IDE, it would offer you these `MODE_*` constants, so that's pretty easy to figure what to do. I don't have a strong opinion though...