Fix the location where we load server capabilities.

The load_capabilities call was being called too soon, before the server
was invoked, due to some other code shuffling.