Moved decision tree mechanism into its own class file and adapted predict plugin

Since the decision tree mechanism is now a pretty general functionality, it was moved into its own class file (accompanied by a clean interface) such that it can be reused again easily. The prediction plugin uses this class for loading and evaluating decision tree models.