Move repository methods from constructor to prototype
Move network methods from constructor to prototype
Abstract common wrapper code into wrapper-base