Refactor error constants and messages in mongo* modules

Rename Constants class in crud and metadata mondules to avoid name
collisions