Build Markov model before connect

Use class method setup() to build and save
Markov model into class attribute.
Right now this was only made to work for external cli mode
not the managed server/client mode...