Added MongoCR support and implemented plugin style for extensions