Use classes for setup scripts

Use classes for setup-scripts. Allows more clear usage of ServiceManager within the class.

This pull-request also adds ServiceManager instance on CM_App itself.