Split apicompat into plugin vor apiv1 and a module for apiv2
Draft of compatibility functions