templatifiy Connection class

 + snake-casify some functions