fixed error setting repositories
fixed _manageCloudProfPackage, rmeoved more dead code
extract RESTResource base class
added more rest resources