Move C API of opencv_objdetect to separate file

Also move cv::linemod to own header