In Cherrycake, all process-specific functionality is packed in modules. A great example is the Database module, which is in charge of all the communication with a server like MySQL.
Most modules depend on others to do their job. When this happens, dependencies are solved automatically and all the needed modules are loaded on the fly. For example, the Database module might need at some point the Security module to ensure the data you're storing in the database is safe.
Modules can have configuration files. For example, the Database module requires a configuration file where you set up a MySQL server address, user and password. User modules can have configuration files too.
Modules can respond to requests, so they're the entry point in the Lifecycle of a request to any Cherrycake application. The Actions module takes care of routing requests to the matching mapped modules.