Extract imgcodecs module from highgui

Don't merge.
merge with Itseez/opencv#2943