move module classes into library, remove application and module director...

...ies