Separate |main| from other methods in generated client code
Separate |initialize_*| from other methods in generated include code
Separate |main| from other methods in generated client code
Separate |publish| calls from method definitions code in generated code