Move border type constants and Moments class to core module 

This change allows to completely decouple C and C++ API of imgproc module