Move all common code of server and client to trillek-common