Consistent Plug-in Classifiers for Complex Objectives and Constraints