old_contents:  app.factory("userlistFactory", function (Restangular, $http, settingsFactory, notificationFactory) {
  	var object = {};
  	var activeUsers = Restangular.all('users/active');
  	var suspendedUsers = Restangular.all('users/suspended');
  	object.getActiveUsers = function() {
  		return activeUsers.getList();
  	};
  	object.getSuspendedUsers = function() {
  		return suspendedUsers.getList();
  	};
  	object.activateUser = function(username) {
  		console.log("Activate", username);
  		var usernameData = { Username: username };
  		$http.post(settingsFactory.backendUrl + "user/activate", usernameData).success(function (data) {
  			console.log("ActivateUser Rückgabe", data);
  		}).error(function (data, status) {
  			if (status == 401) {
  				notificationFactory.error({content: "You are not logged in as administrator."});
  			} else {
  				notificationFactory.error({title: "Error:", content: "Server error occured with status code: " + status + " and reponse: " + data });
  			}
  		});
  	};
  	
  	object.changeRole = function(userID, role) {
  		console.log("Change Role", userID);
  		var userData = {UserID: userID, Role: role};
  		$http.put(settingsFactory.backendUrl+"user", userData).success(function(data) {
  		console.log("ChangeUser userID Rückgabe",data);
  		}).error(function(data, status) {
  			notificationFactory.error({title:"Error:", content: "Server error occurred with status code:  "+status+" and response: "+data});
  		});
  	};
  	return object;
  });;
  
new_contents:  app.factory("userlistFactory", function (Restangular, $http, settingsFactory, notificationFactory) {
  	var object = {};
  	var activeUsers = Restangular.all('users/active');
  	var suspendedUsers = Restangular.all('users/suspended');
  	object.getActiveUsers = function() {
  		return activeUsers.getList();
  	};
  	object.getSuspendedUsers = function() {
  		return suspendedUsers.getList();
  	};
  	object.activateUser = function(username) {
  		console.log("Activate", username);
  		var usernameData = { Username: username };
  		$http.post(settingsFactory.backendUrl + "user/activate", usernameData).success(function (data) {
  			console.log("ActivateUser Rückgabe", data);
  		}).error(function (data, status) {
  			if (status == 401) {
  				notificationFactory.error({content: "You are not logged in as administrator."});
  			} else {
  				notificationFactory.error({title: "Error:", content: "Server error occured with status code: " + status + " and reponse: " + data });
  			}
  		});
  	};
  	
  	object.changeRole = function(userID, role) {
  		var userData = {UserID: userID, Role: role};
  		$http.put(settingsFactory.backendUrl+"user", userData).success(function(data) {
  		}).error(function(data, status) {
  			notificationFactory.error({title:"Error:", content: "Server error occurred with status code:  "+status+" and response: "+data});
  		});
  	};
  	return object;
  });;
  
subject: Remove debug messages