Base refactor

Hiya! This change refactors the config parameters into a common base class for all the mojos. It is a prerequisite for the webapp_dir change coming up next...