Connection module functionality implemented. TODO: formalize objects and connection div DOM.