Add #apply_configuration method to Commander::App

So that the server can ask the app to apply its configuration
during the preflight_checks phase.

Also, add some unit tests for the App class.