Revert "Changed module declarations to avoid deep-nesting and -indenting."

Every ruby module needs to be declared sometime. The last changed removed declarations of
module CheckMK. For now I will just go back to the deep-nesting and deep-indenting.

This reverts commit 3c807fbd6c9c1f672e7d7885a3ba6c4f568494f8.