Core anomaly

I implemented `pack` and `unpack` methods of anomaly driver.
To implement that, I changed `anomaly_base` and `recommender_base` to subclasses of `model` class.