Update package manifest automatically

Make the manifest be a Custom Variable list.
Also install advices to package-{install,delete} that automatically
updates this list.