Warring sides agree to hold vote within two years and to form committee to help choose government, but will it work?