Reorder initialization steps.

1. only init logger system before call start server method.
2. init configs, default templates cache and session manager after call
start server method.