Added analytic abstractions.

Extracted analytic abstractions from spring-xd-analytic-ml.
Initial starting ground for retro-fitting.
Minor fixes