LearningRule reference implementation

Just a start, but has a LearningRule base class (is this necessary?) and the start of a HPESLearningRule.