Added delete functions to projects and categories.
Fixed preferences.