fix minor leak; added functions to convert sort keys <-> strings
fix leak; don't try to parse null predicate strings
added PDImageSortOptionsDidChange notification
save library item view state (sort options and image predicate)