rearrangements in core, imgproc, optim modules;

removed optim module - moved its functionality to core and photo modules
moved drawing functions from core to imgproc
removed FilterEngine etc. from public API