Mali junta wants three-year military rule, agrees to free president