Added dist tasks into server and root build files