Extract imgcodecs module from highgui

Merge with Itseez/opencv#2943