Calendar-user preferences are now automatically cleaned when a user loses access to a calendar. Also fixed minor bugs with creating default calendar-user preferences.
Removed unused cleanpreferences.php