adds two class method for Flavor

adds two class method for Flavor:
 - find_by_constraints(constraints_hash)  => returns all flavors that meets the given constraints
 - applicable_for_image(image)                => returns all flavors that can be used for a given image