Meta rules revamp and statistics

Merged meta switching rules with meta role rules, to increase the
expressiveness of the learner. Created lots of meta rules. Added a
statistics tracker. Minor bugfixes.