Moved connection + protocoll + entities to commons