Moodle has a modular architecture allowing you to customize features by creating modules and plugins. There is large community plugin directory which you can utilize to extend your LMS.
It seems OpenEdx And Chamilo also boasts of modularity however when it comes to contibuted xblocks, the number is few.