The favourites are based on KAStats (already released version) and kactivitymanagerd master (to be released with the next Plasma release). It allows favourites to be set to all activities, or the user can choose which activities to show a specific favourite application on.
This change covers applications, files and contacts, other favourites are still based on the old model (now named SimpleFavoritesModel).