Commands are now called through a magic method.
Moved core connection handling to a separate class.