This is removing the custom class loader and should make things easier

Fixed plugins to work with new design, also tidied up most of the core to a reasonable standard.