Class based processors

Started the processors refactoring.
Please note this has not been extensively tested...