Logging flows into file every ten seconds!

AnomalyDetector.java -> basically the learning switch
StatCollector.java -> made subtle changes
RuleHandler.java -> havent used this yet.
Adding flow rules using StaticFlowPusherService but as of now logging
the flows using our own StatCollector (probably better off to shift to
the StaticFlowPusherService as well)