Added namespace to model generator

added model namespace to scaffolding

added namespaces to model, controller and scaffolding

fixed duplicate namespace addition

added config options for namespaces, little refactoring of functions